File tree Expand file tree Collapse file tree 1 file changed +77
-0
lines changed
Expand file tree Collapse file tree 1 file changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Documentation
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - " docs/**"
8+ - " .github/workflows/deploy-docs.yml"
9+ workflow_dispatch :
10+
11+ # Allow only one concurrent deployment
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : false
15+
16+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+ permissions :
18+ contents : read
19+ pages : write
20+ id-token : write
21+
22+ jobs :
23+ build :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+
29+ - name : Setup Node.js
30+ uses : actions/setup-node@v4
31+ with :
32+ node-version : " lts/*"
33+
34+ - name : Setup pnpm
35+ uses : pnpm/action-setup@v4
36+ with :
37+ version : 9
38+
39+ - name : Get pnpm store directory
40+ shell : bash
41+ run : |
42+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
43+
44+ - name : Setup pnpm cache
45+ uses : actions/cache@v4
46+ with :
47+ path : ${{ env.STORE_PATH }}
48+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49+ restore-keys : |
50+ ${{ runner.os }}-pnpm-store-
51+
52+ - name : Install dependencies
53+ run : pnpm install --frozen-lockfile
54+
55+ - name : Build documentation
56+ run : |
57+ cd docs
58+ pnpm run build
59+
60+ - name : Setup Pages
61+ uses : actions/configure-pages@v5
62+
63+ - name : Upload artifact
64+ uses : actions/upload-pages-artifact@v3
65+ with :
66+ path : ./docs/dist
67+
68+ deploy :
69+ needs : build
70+ runs-on : ubuntu-latest
71+ environment :
72+ name : github-pages
73+ url : ${{ steps.deployment.outputs.page_url }}
74+ steps :
75+ - name : Deploy to GitHub Pages
76+ id : deployment
77+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments