File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -2,35 +2,33 @@ name: Deploy to GitHub Pages
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [main]
76
87jobs :
98 deploy :
10- name : Deploy to GitHub Pages
119 runs-on : ubuntu-latest
1210 steps :
13- - uses : actions/checkout@v2
11+ - uses : actions/checkout@v3
1412
15- - uses : pnpm/action-setup@v2
13+ - name : Setup pnpm
14+ uses : pnpm/action-setup@v2
1615 with :
17- version : 9
16+ version : 8 # Use your preferred pnpm version
1817
19- - uses : actions/setup-node@v2
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v3
2020 with :
21- node-version : 18.x
22- cache : pnpm
21+ node-version : 18
22+ cache : ' pnpm'
2323
2424 - name : Install dependencies
25- run : pnpm install --frozen-lockfile
26- - name : Build website
25+ run : pnpm install
26+
27+ - name : Build
2728 run : pnpm build
2829
29- - name : Deploy to GitHub Pages
30+ - name : Deploy
3031 uses : peaceiris/actions-gh-pages@v3
3132 with :
3233 github_token : ${{ secrets.GITHUB_TOKEN }}
33- publish_dir : ./out
34- cname : docs.it-scripts.com
35- user_name : github-actions[bot]
36- user_email : 41898282+github-actions[bot]@users.noreply.github.com
34+ publish_dir : ./out
You can’t perform that action at this time.
0 commit comments