Skip to content

Commit 3a632f9

Browse files
committed
Add docs-only workflow
1 parent c058d6f commit 3a632f9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
type: choice
8+
description: Which branch to deploy?
9+
required: true
10+
options:
11+
- main
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.inputs.branch }}
20+
- name: Enable pnpm
21+
run: "corepack enable"
22+
- name: Use Node.js 22.x
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22.x
26+
cache: pnpm
27+
- run: pnpm install
28+
- run: npm run build
29+
- run: npm run docs
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v4
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: docs

0 commit comments

Comments
 (0)