Skip to content

Commit

Permalink
Merge pull request #72 from BioJulia/docs
Browse files Browse the repository at this point in the history
Work on deploying docs via github actions
  • Loading branch information
jakobnissen authored Mar 24, 2021
2 parents d1b047e + ec81f5e commit 9c8691d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,20 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
7 changes: 7 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b"

[compat]
Documenter = "0.24 - 0.26"
Automa = "0.9"
9 changes: 4 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ using Automa
# run(`julia preconditions.jl`)

makedocs(
format = :html,
sitename = "Automa.jl",
modules = [Automa],
pages = [
"Home" => "index.md",
"References" => "references.md"
]
],
format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true")
)

deploydocs(
repo = "github.com/BioJulia/Automa.jl.git",
julia = "0.6",
target = "build",
deps = nothing,
make = nothing
push_preview = true,
)

0 comments on commit 9c8691d

Please sign in to comment.