File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy static to Pages
1+ name : Deploy to GitHub Pages
22
33on :
44 push :
5- branches : [' main' ]
5+ branches : [main]
66 workflow_dispatch :
77
88permissions :
@@ -11,35 +11,35 @@ permissions:
1111 id-token : write
1212
1313concurrency :
14- group : ' pages'
15- cancel-in-progress : false
14+ group : " pages"
15+ cancel-in-progress : true
1616
1717jobs :
18- build :
18+ build-and-deploy :
1919 runs-on : ubuntu-latest
2020 steps :
21- - name : Checkout
21+ - name : Checkout your repo uwu
2222 uses : actions/checkout@v4
23- - name : Set up Node
24- uses : actions/setup-node@v4
25- with :
26- node-version : 20
27- cache : ' pnpm'
28- - name : Set up pnpm
29- uses : pnpm/action-setup@v3
23+
24+ - name : Install pnpm first :3
25+ uses : pnpm/action-setup@v4
3026 with :
31- version : 8
27+ version : 10
28+
3229 - name : Install dependencies
33- run : pnpm install
34- - name : Build
30+ run : pnpm install --frozen-lockfile
31+
32+ - name : Build the site
3533 run : pnpm run build
36- - name : Setup Pages
34+
35+ - name : Setup GitHub Pages
3736 uses : actions/configure-pages@v5
38- - name : Upload artifact
37+
38+ - name : Upload build artifact
3939 uses : actions/upload-pages-artifact@v3
4040 with :
41- # Upload dist folder
42- path : ' ./dist '
41+ path : ./ dist
42+
4343 - name : Deploy to GitHub Pages
4444 id : deployment
45- uses : actions/deploy-pages@v4
45+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments