Skip to content

Commit

Permalink
Deploy docs with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
goretkin committed Feb 28, 2021
1 parent ef811c9 commit a4e0bca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,20 @@ jobs:
- 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'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=docs --color=yes docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
11 changes: 5 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ makedocs(
],
)

# Documenter can also automatically deploy documentation to gh-pages.
# See "Hosting Documentation" and deploydocs() in the Documenter manual
# for more information.
#=deploydocs(
repo = "<repository url>"
)=#
deploydocs(
repo = "github.com/JuliaLang/Tokenize.jl.git",
devbranch = "master",
push_preview = true,
)

0 comments on commit a4e0bca

Please sign in to comment.