File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy VitePress
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v6
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v6
21+ with :
22+ node-version : " 22"
23+
24+ - name : Install pnpm
25+ uses : pnpm/action-setup@v4
26+
27+ - name : Install dependencies
28+ run : pnpm install --frozen-lockfile
29+
30+ - name : Build documentation site
31+ run : pnpm run docs:build
32+
33+ - name : Deploy to GitHub Pages
34+ if : github.event_name != 'pull_request'
35+ uses : peaceiris/actions-gh-pages@v4
36+ with :
37+ personal_token : ${{ secrets.ACTION_PERSONAL_TOKEN }}
38+ publish_dir : .vitepress/dist
39+ external_repository : XTLS/XTLS.github.io
40+ publish_branch : gh-pages-next
You can’t perform that action at this time.
0 commit comments