forked from Evovest/EvoTrees.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |