File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 build-and-deploy :
1111 runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
1216
1317 steps :
1418 - name : Checkout
@@ -26,13 +30,14 @@ jobs:
2630 - name : Build
2731 run : npm run build
2832
29- - name : Deploy to GitHub Pages
30- uses : peaceiris/actions-gh-pages@v3
31- if : github.ref == 'refs/heads/main'
33+ - name : Setup Pages
34+ uses : actions/configure-pages@v4
35+
36+ - name : Upload artifact
37+ uses : actions/upload-pages-artifact@v3
3238 with :
33- github_token : ${{ secrets.GITHUB_TOKEN }}
34- publish_dir : ./out
35- force_orphan : true
36- user_name : ' github-actions[bot]'
37- user_email : ' github-actions[bot]@users.noreply.github.com'
38- # cname: design.buzzvil.com # Optional: if you have a custom domain
39+ path : ' ./out'
40+
41+ - name : Deploy to GitHub Pages
42+ id : deployment
43+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments