File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy
22
33on :
4- workflow_dispatch :
54 push :
65 branches : [master]
76 paths :
87 - public/**
98 - src/**
9+ - nuxt.config.ts
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
1016
11- # env:
12- # URL: example.com
17+ concurrency :
18+ group : pages
19+ cancel-in-progress : true
1320
1421jobs :
1522 build :
1623 runs-on : ubuntu-latest
1724 steps :
18- - uses : actions/checkout@v4
19- - uses : pnpm/action-setup@v4
20- - uses : actions/setup-node@v4
25+ - name : Checkout repo
26+ uses : actions/checkout@v4
27+
28+ - name : Setup pnpm
29+ uses : pnpm/action-setup@v4
30+
31+ - name : Setup Node
32+ uses : actions/setup-node@v4
2133 with :
2234 node-version : 20.x
2335 cache : pnpm
2436
25- - name : Install
37+ - name : Install dependencies
2638 run : pnpm install --frozen-lockfile
2739
28- - name : Build
40+ - name : Build static site
2941 run : |
3042 pnpm run build:ssg
3143 cp dist/index.html dist/404.html
32- # echo ${{ env.URL }} > dist/CNAME
44+ touch dist/.nojekyll
3345
34- - name : Deploy 🚀
35- uses : JamesIves/github-pages-deploy-action@v4.3.3
46+ - name : Configure GitHub Pages
47+ uses : actions/configure-pages@v5
48+
49+ - name : Upload GitHub Pages artifact
50+ uses : actions/upload-pages-artifact@v3
3651 with :
37- branch : gh-pages
38- folder : dist
52+ path : dist
53+
54+ deploy :
55+ needs : build
56+ runs-on : ubuntu-latest
57+ environment :
58+ name : github-pages
59+ url : ${{ steps.deployment.outputs.page_url }}
60+ steps :
61+ - name : Deploy to GitHub Pages
62+ id : deployment
63+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments