File tree Expand file tree Collapse file tree 1 file changed +35
-14
lines changed Expand file tree Collapse file tree 1 file changed +35
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : Documenter
2
2
on :
3
- push :
4
- branches : [master]
5
- tags : [v*]
6
- pull_request :
3
+ push :
4
+ branches : [master]
5
+ tags : [v*]
6
+ pull_request :
7
+
8
+ concurrency :
9
+ # Skip intermediate builds: always.
10
+ # Cancel intermediate builds: only if it is a pull request build.
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
7
13
8
14
jobs :
9
- Documenter :
10
- name : Documentation
11
- runs-on : ubuntu-latest
12
- steps :
13
- - uses : actions/checkout@v4
14
- - uses : julia-actions/julia-buildpkg@v1
15
- - uses : julia-actions/julia-docdeploy@v1
16
- env :
17
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
15
+ docs :
16
+ name : Documentation
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ # needed to allow julia-actions/cache to proactively delete old caches that it has created
20
+ actions : write
21
+ contents : write
22
+ # needed to allow the workflow to create a status with a link to the docs preview
23
+ statuses : write
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - uses : julia-actions/setup-julia@v1
27
+ with :
28
+ version : ' 1'
29
+ - uses : julia-actions/cache@v1
30
+ - name : Configure doc environment
31
+ shell : julia --project=docs --color=yes {0}
32
+ run : |
33
+ using Pkg
34
+ Pkg.develop(PackageSpec(path=pwd()))
35
+ Pkg.instantiate()
36
+ - uses : julia-actions/julia-buildpkg@v1
37
+ - run : julia --project=docs docs/make.jl
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments