File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,8 @@ permissions:
1111 id-token : write
1212
1313jobs :
14- build-and-deploy :
14+ build :
1515 runs-on : ubuntu-latest
16-
1716 steps :
1817 - name : Checkout repository
1918 uses : actions/checkout@v4
@@ -29,10 +28,21 @@ jobs:
2928 - name : Build site
3029 run : npm run build
3130
32- - name : Upload artifact for GitHub Pages
33- uses : actions/upload-pages-artifact@v1
31+ - name : Upload static files as artifact
32+ id : deployment
33+ uses : actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
3434 with :
3535 path : ' ./dist'
3636
3737 - name : Deploy to GitHub Pages
38- uses : actions/deploy-pages@v1
38+ uses : actions/deploy-pages@v4
39+ deploy :
40+ environment :
41+ name : github-pages
42+ url : ${{ steps.deployment.outputs.page_url }}
43+ runs-on : ubuntu-latest
44+ needs : build
45+ steps :
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments