File tree Expand file tree Collapse file tree 2 files changed +72
-31
lines changed
Expand file tree Collapse file tree 2 files changed +72
-31
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ deploy :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : " 20"
22+
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v2
25+ with :
26+ version : 8
27+ run_install : false
28+
29+ - name : Install dependencies
30+ run : pnpm install --no-frozen-lockfile
31+
32+ - name : Build website
33+ run : pnpm run build
34+ env :
35+ NODE_ENV : production
36+
37+ - name : Deploy to GitHub Pages
38+ uses : peaceiris/actions-gh-pages@v3
39+ with :
40+ github_token : ${{ secrets.GITHUB_TOKEN }}
41+ publish_dir : ./build/client
You can’t perform that action at this time.
0 commit comments