Skip to content

Commit 1a22cf4

Browse files
committed
CI: update documenter setup
1 parent 5dad5d3 commit 1a22cf4

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/Documenter.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
name: Documenter
22
on:
3-
push:
4-
branches: [master]
3+
push:
4+
branches: [main, master]
55
tags: [v*]
6-
pull_request:
6+
pull_request:
7+
8+
permissions:
9+
actions: write # needed to allow julia-actions/cache to delete old caches that it has created
10+
contents: write # needed to allow deploying docs
11+
statuses: write
712

813
jobs:
9-
Documenter:
14+
Documenter:
1015
name: Documentation
1116
runs-on: ubuntu-latest
1217
steps:
13-
- uses: actions/checkout@v2
14-
- uses: julia-actions/julia-buildpkg@latest
15-
- uses: julia-actions/julia-docdeploy@latest
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
20+
with:
21+
version: '1' # replace this with whatever version you need
22+
show-versioninfo: true # this causes versioninfo to be printed to the action log
23+
- uses: julia-actions/cache@v2 # cache using https://github.com/julia-actions/cache
24+
- uses: julia-actions/julia-buildpkg@v1 # if package requires Pkg.build()
25+
- uses: julia-actions/julia-docdeploy@v1
1626
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)