File tree 1 file changed +16
-13
lines changed
1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -29,24 +29,27 @@ jobs:
29
29
- name : Upload production-ready build files
30
30
uses : actions/upload-artifact@v4
31
31
with :
32
- name : production-files
32
+ name : github-pages
33
33
path : ./dist
34
34
35
35
deploy :
36
36
name : Deploy
37
+ # Add a dependency to the build job
37
38
needs : build
38
- runs-on : ubuntu-latest
39
- if : github.ref == 'refs/heads/main'
40
39
41
- steps :
42
- - name : Download artifact
43
- uses : actions/download-artifact@v4
44
- with :
45
- name : production-files
46
- path : ./dist
40
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
41
+ permissions :
42
+ pages : write # to deploy to Pages
43
+ id-token : write # to verify the deployment originates from an appropriate source
47
44
45
+ # Deploy to the github-pages environment
46
+ environment :
47
+ name : github-pages
48
+ url : ${{ steps.deployment.outputs.page_url }}
49
+
50
+ # Specify runner + deployment step
51
+ runs-on : ubuntu-latest
52
+ steps :
48
53
- name : Deploy to GitHub Pages
49
- uses : peaceiris/actions-gh-pages@v3
50
- with :
51
- github_token : ${{ secrets.GITHUB_TOKEN }}
52
- publish_dir : ./dist
54
+ id : deployment
55
+ 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