Skip to content

Commit e397c68

Browse files
authored
Update GitHub Actions permissions and deployment steps
1 parent 75c9e7b commit e397c68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
permissions:
1818
contents: write
1919
pull-requests: write
20+
pages: write
21+
id-token: write
2022

2123
jobs:
2224
build:
@@ -124,6 +126,8 @@ jobs:
124126
125127
deploy-production:
126128
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
129+
permissions:
130+
contents: write
127131
runs-on: ubuntu-latest
128132
needs: build
129133
steps:
@@ -140,4 +144,5 @@ jobs:
140144
uses: JamesIves/github-pages-deploy-action@v4
141145
with:
142146
branch: gh-pages
143-
folder: site
147+
folder: site
148+
clean: true

0 commit comments

Comments
 (0)