7
7
branches :
8
8
- master
9
9
tags : ' *'
10
+
11
+ concurrency :
12
+ # Skip intermediate builds: always.
13
+ # Cancel intermediate builds: only if it is a pull request build.
14
+ group : ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
16
+
10
17
jobs :
11
18
test :
12
19
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -49,22 +56,31 @@ jobs:
49
56
docs :
50
57
name : Documentation
51
58
runs-on : ubuntu-latest
59
+ permissions :
60
+ # needed to allow julia-actions/cache to proactively delete old caches that it has created
61
+ actions : write
62
+ contents : write
52
63
steps :
53
64
- uses : actions/checkout@v4
54
65
- uses : julia-actions/setup-julia@v1
55
66
with :
56
67
version : ' 1'
57
- - run : |
58
- julia --project=docs -e '
59
- using Pkg
60
- Pkg.develop(PackageSpec(path=pwd()))
61
- Pkg.instantiate()'
62
- - run : |
63
- julia --project=docs -e '
64
- using Documenter: doctest
65
- using Roots
66
- doctest(Roots)'
67
- - run : julia --project=docs docs/make.jl
68
+ - uses : julia-actions/cache@v1
69
+ - name : Configure doc environment
70
+ shell : julia --project=docs --color=yes {0}
71
+ run : |
72
+ using Pkg
73
+ Pkg.develop(PackageSpec(path=pwd()))
74
+ Pkg.instantiate()
75
+ - name : Run doctests
76
+ shell : julia --project=docs --color=yes {0}
77
+ run : |
78
+ using Documenter: DocMeta, doctest
79
+ using Roots
80
+ DocMeta.setdocmeta!(Roots, :DocTestSetup, :(using Roots); recursive=true)
81
+ doctest(Roots)
82
+ - uses : julia-actions/julia-buildpkg@v1
83
+ - name : Deploy
84
+ run : julia --project=docs docs/make.jl
68
85
env :
69
86
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
0 commit comments