File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
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
3034 - name : Build
3135 run : pnpm run build
3236
33- - name : Deploy to GitHub Pages
34- uses : peaceiris/actions-gh-pages@v3
37+ - name : Setup Pages
38+ uses : actions/configure-pages@v4
39+ if : github.ref == 'refs/heads/main'
40+
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v3
3543 if : github.ref == 'refs/heads/main'
3644 with :
37- github_token : ${{ secrets.GITHUB_TOKEN }}
38- publish_dir : ./dist
45+ path : ./dist
46+
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v4
50+ if : github.ref == 'refs/heads/main'
You can’t perform that action at this time.
0 commit comments