Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiedb committed Feb 1, 2022
1 parent e6b6805 commit 8fe2238
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 24 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.4' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
- 'nightly'
os:
Expand Down Expand Up @@ -50,19 +50,4 @@ jobs:
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl
file: lcov.info
23 changes: 23 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Documentation
on:
push:
branches:
- main
tags: '*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl
15 changes: 8 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
using Documenter
using EvoTrees

push!(LOAD_PATH,"../src/")
push!(LOAD_PATH, "../src/")

pages = ["Home" => "index.md",
pages = [
"Home" => "index.md",
"Examples" => "examples.md"]

makedocs(
sitename="EvoTrees.jl",
sitename = "EvoTrees.jl",
authors = "Jeremie Desgagne-Bouchard and contributors.",
format=Documenter.HTML(),
format = Documenter.HTML(),
pages = pages,
modules = [EvoTrees],)

deploydocs(repo="github.com/Evovest/EvoTrees.jl.git",
target="build",
deploydocs(repo = "github.com/Evovest/EvoTrees.jl.git",
target = "build",
devbranch = "main",
push_preview=false)
push_preview = false)

0 comments on commit 8fe2238

Please sign in to comment.