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 }}
@@ -48,23 +55,31 @@ jobs:
48
55
docs :
49
56
name : Documentation
50
57
runs-on : ubuntu-latest
58
+ permissions :
59
+ # needed to allow julia-actions/cache to proactively delete old caches that it has created
60
+ actions : write
61
+ contents : write
51
62
steps :
52
63
- uses : actions/checkout@v4
53
64
- uses : julia-actions/setup-julia@v1
54
65
with :
55
66
version : ' 1'
56
- - run : |
57
- julia --project=docs -e '
58
- using Pkg
59
- Pkg.develop(PackageSpec(path=pwd()))
60
- Pkg.instantiate()'
61
- - run : |
62
- julia --project=docs -e '
63
- using Documenter: doctest, DocMeta
64
- using Polynomials
65
- DocMeta.setdocmeta!(Polynomials, :DocTestSetup, :(using Polynomials); recursive = true)
66
- doctest(Polynomials)'
67
- - run : julia --project=docs docs/make.jl
67
+ - uses : julia-actions/cache@v1
68
+ - name : Configure doc environment
69
+ shell : julia --project=docs --color=yes {0}
70
+ run : |
71
+ using Pkg
72
+ Pkg.develop(PackageSpec(path=pwd()))
73
+ Pkg.instantiate()
74
+ - name : Run doctests
75
+ shell : julia --project=docs --color=yes {0}
76
+ run : |
77
+ using Documenter: DocMeta, doctest
78
+ using Polynomials
79
+ DocMeta.setdocmeta!(Polynomials, :DocTestSetup, :(using Polynomials); recursive=true)
80
+ doctest(Polynomials)
81
+ - uses : julia-actions/julia-buildpkg@v1
82
+ - name : Deploy
83
+ run : julia --project=docs docs/make.jl
68
84
env :
69
85
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
0 commit comments