File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - main
88
99permissions :
10- contents : read
11- pages : write
12- id-token : write
10+ contents : write
1311
1412jobs :
15- build :
13+ build-and-deploy :
1614 runs-on : ubuntu-latest
1715 steps :
1816 - name : Checkout Code
@@ -29,18 +27,10 @@ jobs:
2927 - name : Build Project
3028 run : npm run build
3129
32- - name : Upload Artifact
33- uses : actions/upload-pages-artifact@v3
34- with :
35- path : ./dist
36-
37- deploy :
38- environment :
39- name : github-pages
40- url : ${{ steps.deployment.outputs.page_url }}
41- runs-on : ubuntu-latest
42- needs : build
43- steps :
30+ # This method is more robust for new repos as it doesn't require
31+ # manual configuration in the "Settings > Pages" tab.
4432 - name : Deploy to GitHub Pages
45- id : deployment
46- uses : actions/deploy-pages@v4
33+ uses : JamesIves/github-pages-deploy-action@v4
34+ with :
35+ folder : dist # The folder the build output is located in
36+ branch : gh-pages # The branch the action should deploy to
You can’t perform that action at this time.
0 commit comments