Skip to content

Commit c776a6e

Browse files
authored
CI: update Documenter job to latest version (#928)
Taken from https://github.com/julia-actions/julia-docdeploy README
1 parent 9fb1559 commit c776a6e

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

.github/workflows/Documenter.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
name: Documenter
22
on:
3-
push:
4-
branches: [master]
5-
tags: [v*]
6-
pull_request:
3+
push:
4+
branches: [main, master]
5+
tags: [v*]
6+
pull_request:
77

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

0 commit comments

Comments
 (0)