Skip to content

Commit 056387b

Browse files
committed
feat: add a build workflow in GitHub Actions
1 parent 5d0a6c9 commit 056387b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or whichever branch you want to trigger on
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
17+
- name: Setup Node.js & pnpm
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
cache: "pnpm"
22+
23+
- name: Install dependencies
24+
run: |
25+
corepack enable
26+
pnpm install
27+
28+
- name: Build docs
29+
run: pnpm build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v4
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: build/

0 commit comments

Comments
 (0)