Skip to content

Commit fd70a73

Browse files
committed
Fix permissions
1 parent 808b15b commit fd70a73

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
1112
steps:
1213
- name: Fetch latest repository
1314
uses: actions/checkout@v4
@@ -28,7 +29,22 @@ jobs:
2829
name: github-pages
2930
path: |
3031
dist
32+
33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
37+
permissions:
38+
pages: write
39+
id-token: write
40+
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
45+
steps:
3146
- name: Publishing production artifact
47+
id: deployment
3248
uses: actions/deploy-pages@v4
3349
with:
3450
artifact_name: github-pages

0 commit comments

Comments
 (0)