File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed
Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-and-deploy :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : 18
21+
22+ - name : Setup pnpm
23+ uses : pnpm/action-setup@v2
24+ with :
25+ version : 8
26+ run_install : false
27+
28+ - name : Get pnpm store directory
29+ shell : bash
30+ run : |
31+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
33+ - name : Setup pnpm cache
34+ uses : actions/cache@v4
35+ with :
36+ path : ${{ env.STORE_PATH }}
37+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pnpm-store-
40+
41+ - name : Install dependencies
42+ run : pnpm install --frozen-lockfile
43+
44+ - name : Build docs
45+ run : pnpm docs
46+
47+ - name : Deploy to GitHub Pages
48+ uses : peaceiris/actions-gh-pages@v3
49+ with :
50+ github_token : ${{ secrets.GITHUB_TOKEN }}
51+ publish_dir : ./docs
52+ publish_branch : gh-pages
53+ cname : " bootnodedev.github.io"
Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ coverage
3030.DS_Store
3131
3232# docs
33- / docs
33+ docs
You can’t perform that action at this time.
0 commit comments