File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,22 @@ jobs:
3333 path : ./dist
3434
3535 deploy :
36- name : Deploy
36+ # Add a dependency to the build job
3737 needs : build
38- runs-on : ubuntu-latest
39- if : github.ref == 'refs/heads/main'
4038
41- steps :
42- - name : Download artifact
43- uses : actions/download-artifact@v4
44- with :
45- name : production-files
46- path : ./dist
39+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
40+ permissions :
41+ pages : write # to deploy to Pages
42+ id-token : write # to verify the deployment originates from an appropriate source
4743
44+ # Deploy to the github-pages environment
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+
49+ # Specify runner + deployment step
50+ runs-on : ubuntu-latest
51+ steps :
4852 - name : Deploy to GitHub Pages
49- uses : peaceiris/actions-gh-pages@v3
50- with :
51- github_token : ${{ secrets.GITHUB_TOKEN }}
52- publish_dir : ./dist
53+ id : deployment
54+ uses : actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
You can’t perform that action at this time.
0 commit comments