File tree Expand file tree Collapse file tree 3 files changed +37
-524
lines changed
Expand file tree Collapse file tree 3 files changed +37
-524
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ main ]
88
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
918jobs :
10- build-and-deploy :
19+ build :
1120 runs-on : ubuntu-latest
1221
1322 steps :
2635 - name : Build
2736 run : npm run build
2837
29- - name : Deploy to GitHub Pages
30- uses : peaceiris/actions-gh-pages@v3
31- if : github.ref == 'refs/heads/main'
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v3
3243 with :
33- github_token : ${{ secrets.GITHUB_TOKEN }}
34- publish_dir : ./dist
44+ path : ' ./dist'
45+
46+ deploy :
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ runs-on : ubuntu-latest
51+ needs : build
52+
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments