File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,30 @@ jobs:
2626 - run : cd test && npm i
2727 - run : node --run build
2828
29- - name : Deploy
30- if : github.event_name == 'push' && github.ref_name == 'main'
31- uses : JamesIves/github-pages-deploy-action@v4
29+ # - name: Deploy
30+ # if: github.event_name == 'push' && github.ref_name == 'main'
31+ # uses: JamesIves/github-pages-deploy-action@v4
32+ # with:
33+ # branch: gh-pages
34+ # folder: test/dist
35+ # single-commit: true
36+ # force: true
37+
38+ deploy :
39+ if : github.event_name == 'push' && github.ref_name == 'main'
40+ needs : build
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
44+ runs-on : ubuntu-latest
45+
46+ steps :
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
3249 with :
33- branch : gh-pages
34- folder : test/dist
35- single-commit : true
36- force : true
50+ # Upload entire repository
51+ path : " dist/test"
52+
53+ - name : Deploy to GitHub Pages
54+ id : deployment
55+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments