Skip to content

Commit 532e177

Browse files
committed
fix(ci): add permission for token and environment
1 parent fbbe684 commit 532e177

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,13 @@ jobs:
138138
runs-on: ubuntu-latest
139139
needs: build-docs
140140
if: ${{ github.event_name == 'workflow_run' }}
141+
environment:
142+
name: github-pages
143+
url: ${{ steps.deployment.outputs.page_url }}
141144
permissions:
142145
pages: write
143146
id-token: write
147+
contents: write
144148

145149
steps:
146150
- name: Get the docs_build artifact
@@ -170,3 +174,4 @@ jobs:
170174

171175
- name: Deploy to GitHub Pages
172176
uses: actions/deploy-pages@v4
177+

0 commit comments

Comments
 (0)