File tree Expand file tree Collapse file tree 2 files changed +66
-10
lines changed
Expand file tree Collapse file tree 2 files changed +66
-10
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@v5
28+ - name : Setup pnpm 🔧
29+ uses : pnpm/action-setup@v4
30+ - name : Setup Node.js 🔧
31+ uses : actions/setup-node@v6
32+ with :
33+ node-version : " lts/*"
34+ check-latest : true
35+ cache : " pnpm"
36+ - name : Install dependencies 🪄
37+ run : |
38+ cd docs
39+ pnpm install --frozen-lockfile
40+ - name : Build documentation 💎
41+ run : |
42+ cd docs
43+ pnpm run build
44+ - name : Setup Pages 📄
45+ uses : actions/configure-pages@v5
46+ - name : Upload artifact 🚀
47+ uses : actions/upload-pages-artifact@v3
48+ with :
49+ path : ./docs/dist
50+
51+ deploy :
52+ needs : build
53+ runs-on : ubuntu-latest
54+ environment :
55+ name : github-pages
56+ url : ${{ steps.deployment.outputs.page_url }}
57+ steps :
58+ - name : Deploy to GitHub Pages
59+ id : deployment
60+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -16,13 +16,11 @@ jobs:
1616 name : Test on node@v${{ matrix.node }}
1717 steps :
1818 - name : Checkout 🛎️
19- uses : actions/checkout@v4
19+ uses : actions/checkout@v5
2020 - name : Setup pnpm 🔧
21- uses : pnpm/action-setup@v3
22- with :
23- version : 9
21+ uses : pnpm/action-setup@v4
2422 - name : Setup node 🔧
25- uses : actions/setup-node@v4
23+ uses : actions/setup-node@v6
2624 with :
2725 node-version : ${{ matrix.node }}
2826 check-latest : true
@@ -43,13 +41,11 @@ jobs:
4341 name : Build on node@v${{ matrix.node }}
4442 steps :
4543 - name : Checkout 🛎️
46- uses : actions/checkout@v4
44+ uses : actions/checkout@v5
4745 - name : Setup pnpm 🔧
48- uses : pnpm/action-setup@v3
49- with :
50- version : 9
46+ uses : pnpm/action-setup@v4
5147 - name : Setup node 🔧
52- uses : actions/setup-node@v4
48+ uses : actions/setup-node@v6
5349 with :
5450 node-version : ${{ matrix.node }}
5551 check-latest : true
You can’t perform that action at this time.
0 commit comments