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
2+ on :
3+ workflow_dispatch : {}
4+ push :
5+ branches :
6+ - main
7+ permissions :
8+ contents : write
9+ jobs :
10+ build-and-deploy :
11+ concurrency : ci-${{ github.ref }}
12+ runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ node-version : [22]
16+ environment :
17+ name : github-pages
18+ steps :
19+ - name : Checkout ποΈ
20+ uses : actions/checkout@main
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Setup pnpm β‘οΈ
25+ uses : pnpm/action-setup@v4
26+ with :
27+ version : 9
28+
29+ - name : Use Node.js ${{ matrix.node-version }}
30+ uses : actions/setup-node@main
31+ with :
32+ node-version : ${{ matrix.node-version }}
33+ cache : " pnpm"
34+
35+ - name : Install dependencies β‘οΈ
36+ run : pnpm install --frozen-lockfile
37+
38+ - name : Build π οΈ
39+ run : pnpm docs:build
40+
41+ - name : Deploy π
42+ uses : peaceiris/actions-gh-pages@v4
43+ with :
44+ github_token : ${{ secrets.GITHUB_TOKEN }}
45+ publish_dir : docs/.vitepress/dist
46+ user_name : " github-actions[bot]"
47+ user_email : " 41898282+github-actions[bot]@users.noreply.github.com"
48+ commit_message : " π ci: Deploy"
49+ force_orphan : true
You canβt perform that action at this time.
0 commit comments