File tree Expand file tree Collapse file tree 1 file changed +8
-27
lines changed
Expand file tree Collapse file tree 1 file changed +8
-27
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : [master]
66
7- permissions :
8- contents : read
9- pages : write
10- id-token : write
11-
12- concurrency :
13- group : " pages"
14- cancel-in-progress : false
15-
167jobs :
17- build :
8+ build-and-deploy :
189 runs-on : ubuntu-latest
10+ permissions :
11+ contents : write
1912 steps :
2013 - name : Checkout
2114 uses : actions/checkout@v4
3225 - name : Build
3326 run : npm run build
3427
35- - name : Setup Pages
36- uses : actions/configure-pages@v4
37-
38- - name : Upload artifact
39- uses : actions/upload-pages-artifact@v3
28+ - name : Deploy to gh-pages
29+ uses : peaceiris/actions-gh-pages@v4
4030 with :
41- path : dist
42-
43- deploy :
44- environment :
45- name : github-pages
46- url : ${{ steps.deployment.outputs.page_url }}
47- runs-on : ubuntu-latest
48- needs : build
49- steps :
50- - name : Deploy to GitHub Pages
51- id : deployment
52- uses : actions/deploy-pages@v4
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ publish_dir : ./dist
33+ force_orphan : true
You can’t perform that action at this time.
0 commit comments