Skip to content

Commit 1f5d0da

Browse files
committed
add better deploy workflwo
1 parent 768b4f3 commit 1f5d0da

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,23 @@ jobs:
3535
uses: actions/upload-pages-artifact@v3
3636
with:
3737
path: build/
38-
3938
deploy:
39+
# Add a dependency to the build job
4040
needs: build
41+
42+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
4143
permissions:
42-
pages: write
43-
id-token: write
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
4448
environment:
4549
name: github-pages
4650
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
# Specify runner + deployment step
4753
runs-on: ubuntu-latest
4854
steps:
4955
- name: Deploy to GitHub Pages
5056
id: deployment
51-
uses: actions/deploy-pages@v1
57+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 commit comments

Comments
 (0)