@@ -41,22 +41,35 @@ jobs:
41
41
token : ${{ secrets.CODECOV_TOKEN }}
42
42
docs :
43
43
name : Documentation
44
- runs-on : ubuntu-latest
44
+
45
+ on :
46
+ push :
47
+ branches :
48
+ - main # update to match your development branch (master, main, dev, trunk, ...)
49
+ tags : ' *'
50
+ pull_request :
51
+
52
+ concurrency :
53
+ group : ${{ github.workflow }}-${{ github.ref }}
54
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
55
+
56
+ jobs :
57
+ docs :
45
58
permissions :
46
59
contents : write
60
+ pull-requests : read
47
61
statuses : write
62
+ runs-on : ubuntu-latest
48
63
steps :
49
64
- uses : actions/checkout@v4
50
65
- uses : julia-actions/setup-julia@v2
51
66
with :
52
67
version : ' 1'
53
- - uses : julia-actions/julia-buildpkg@v1
54
- - uses : julia-actions/julia-docdeploy@v1
68
+ - uses : julia-actions/cache@v2
69
+ - name : Install dependencies
70
+ run : julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
71
+ - name : Build and deploy
55
72
env :
56
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
- - run : |
58
- julia --project=docs -e '
59
- using Documenter: DocMeta, doctest
60
- using SimpleWeightedGraphs
61
- DocMeta.setdocmeta!(SimpleWeightedGraphs, :DocTestSetup, :(using SimpleWeightedGraphs); recursive=true)
62
- doctest(SimpleWeightedGraphs)'
73
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
74
+ DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
75
+ run : julia --project=docs/ docs/make.jl
0 commit comments