Skip to content

Commit d589a54

Browse files
committed
Permissions for documenter
1 parent ea8a806 commit d589a54

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/Documenter.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ on:
99
tags: '*'
1010
jobs:
1111
docs:
12+
permissions:
13+
contents: write
14+
statuses: write
1215
name: Documentation
1316
runs-on: ubuntu-latest
1417
steps:
1518
- uses: actions/checkout@v4
1619
- uses: julia-actions/setup-julia@v1
1720
with:
1821
version: '1'
19-
- run: |
20-
julia --project -e '
21-
using Pkg
22-
Pkg.instantiate()'
23-
julia --project=docs -e '
24-
using Pkg
25-
Pkg.instantiate()'
26-
- run: julia --project=docs docs/make.jl
22+
- name: Install dependencies
23+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
24+
- name: Build and deploy
2725
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
27+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
28+
run: julia --project=docs/ docs/make.jl

0 commit comments

Comments
 (0)