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 to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout source
14+ uses : actions/checkout@v4
15+
16+ - name : Setup pnpm
17+ uses : pnpm/action-setup@v2
18+ with :
19+ version : 8
20+
21+ - name : Setup Node.js
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : 20
25+ cache : ' pnpm'
26+
27+ - name : Install dependencies
28+ run : pnpm install
29+
30+ - name : Build project
31+ run : pnpm run build
32+
33+ - name : Upload build output
34+ uses : actions/upload-pages-artifact@v2
35+ with :
36+ path : dist
37+
38+ - name : Deploy to GitHub Pages
39+ uses : crazy-max/ghaction-github-pages@v4
40+ with :
41+ target_branch : gh-pages
42+ build_dir : dist
43+ fqdn : md-pages.doocs.org
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 88
99# Node dependencies
1010node_modules
11+ package-lock.json
1112
1213# Logs
1314logs
You can’t perform that action at this time.
0 commit comments