Skip to content

Commit 2239279

Browse files
authored
Merge pull request #11 from digital-carver/dcarv/docyml
grant write perms in yml for doc deployment
2 parents e48edec + 48f291b commit 2239279

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed
Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
name: Documentation
2-
on:
3-
push:
4-
branches:
5-
- master
6-
tags: '*'
7-
pull_request:
8-
jobs:
9-
build:
10-
permissions:
11-
contents: write
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@latest
16-
with:
17-
version: '1.9'
18-
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23-
run: julia --project=docs/ docs/make.jl
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: '*'
7+
pull_request:
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: julia-actions/setup-julia@latest
14+
with:
15+
version: '1.11'
16+
- name: Install dependencies
17+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
18+
- name: Build and deploy
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
21+
run: julia --project=docs/ docs/make.jl
22+
permissions:
23+
contents: write # Required for authenticating with `GITHUB_TOKEN`
24+
pull-requests: read # Required for `push_preview=true`
25+
statuses: write # Optional, used to report documentation build statuses

0 commit comments

Comments
 (0)