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,21 @@ 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 : Upload static files as artifact
30+ id : deployment
31+ uses : actions/upload -pages-artifact@v3 # or specific "vX.X.X" version tag for this action
3232 with :
33- branch : gh-pages
34- folder : test/dist
35- single-commit : true
36- force : true
33+ path : dist/test
34+
35+ deploy :
36+ if : github.event_name == 'push' && github.ref_name == 'main'
37+ needs : build
38+ environment :
39+ name : github-pages
40+ url : ${{ steps.deployment.outputs.page_url }}
41+ runs-on : ubuntu-latest
42+
43+ steps :
44+ - name : Deploy to GitHub Pages
45+ id : deployment
46+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments