Skip to content

Commit 0f32d0c

Browse files
committed
Move permissions into job
1 parent dcc839c commit 0f32d0c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/builddocs.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ on:
66
push:
77
branches:
88
- master
9+
- deploy-docs
910
pull_request:
1011
branches:
1112
- master
12-
13-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14-
permissions:
15-
id-token: write
16-
contents: read
17-
pages: write
18-
actions: read
13+
- deploy-docs
1914

2015
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2116
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -29,6 +24,14 @@ jobs:
2924
name: github-pages
3025
url: ${{ steps.deployment.outputs.page_url }}
3126
runs-on: windows-latest
27+
28+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
29+
permissions:
30+
id-token: write
31+
contents: read
32+
pages: write
33+
actions: read
34+
3235
steps:
3336
- name: Checkout
3437
uses: actions/checkout@v4
@@ -49,4 +52,4 @@ jobs:
4952
path: 'Docs/_site'
5053
- name: Deploy to GitHub Pages
5154
id: deployment
52-
uses: actions/deploy-pages@v3
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)