Skip to content

Commit 966c776

Browse files
committed
fix: update actions
1 parent 5e27443 commit 966c776

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/publishwebsite.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,28 @@ jobs:
3030
run: npm run build --if-present
3131

3232
- name: Upload artifact
33-
uses: actions/upload-artifact@v3
33+
uses: actions/upload-pages-artifact@v3
3434
with:
35-
name: github-pages
3635
path: ./dist
3736

37+
# Deploy job
3838
deploy:
39+
# Add a dependency to the build job
3940
needs: build
40-
runs-on: ubuntu-latest
41+
42+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
43+
permissions:
44+
pages: write # to deploy to Pages
45+
id-token: write # to verify the deployment originates from an appropriate source
46+
47+
# Deploy to the github-pages environment
4148
environment:
4249
name: github-pages
4350
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
# Specify runner + deployment step
53+
runs-on: ubuntu-latest
4454
steps:
4555
- name: Deploy to GitHub Pages
4656
id: deployment
47-
uses: actions/deploy-pages@v2
57+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 commit comments

Comments
 (0)