We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c058d6f commit 3a632f9Copy full SHA for 3a632f9
.github/workflows/gh-pages.yml
@@ -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
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
33
+ github_token: ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir: docs
0 commit comments