Skip to content

Commit 7b2c7a5

Browse files
committed
Set permissions for Github Pages deployment via Actions.
1 parent 821445f commit 7b2c7a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish-github-pages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929

3030
# Deployment the registry to Github Pages
3131
deploy:
32+
needs: build
33+
runs-on: ubuntu-latest
3234
environment:
3335
name: github-pages
3436
url: ${{ steps.deployment.outputs.page_url }}
35-
runs-on: ubuntu-latest
36-
needs: build
37+
permissions:
38+
pages: write
39+
id-token: write
3740
steps:
3841
- name: Deploy to GitHub Pages
3942
id: deployment

0 commit comments

Comments
 (0)