Skip to content

Commit a4e0bca

Browse files
committed
Deploy docs with GitHub Actions
1 parent ef811c9 commit a4e0bca

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/CI.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,20 @@ jobs:
4646
- uses: codecov/codecov-action@v1
4747
with:
4848
file: lcov.info
49-
49+
docs:
50+
name: 'Documentation'
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: julia-actions/setup-julia@v1
55+
with:
56+
version: '1'
57+
- run: |
58+
julia --project=docs -e '
59+
using Pkg
60+
Pkg.develop(PackageSpec(path=pwd()))
61+
Pkg.instantiate()'
62+
- run: julia --project=docs --color=yes docs/make.jl
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

docs/make.jl

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ makedocs(
1010
],
1111
)
1212

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

0 commit comments

Comments
 (0)