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 834435e commit dd299ffCopy full SHA for dd299ff
.github/workflows/deploy.yml
@@ -0,0 +1,39 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ branches:
8
+ - release
9
+ workflow_dispatch:
10
+ repository_dispatch:
11
+ types:
12
+ - buildhook
13
14
+jobs:
15
+ build:
16
+ name: Build
17
+ runs-on: ubuntu-latest
18
19
+ steps:
20
+ - name: Checkout repo
21
+ uses: actions/checkout@v4
22
23
+ - name: Setup Node
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: 20
27
28
+ - uses: pnpm/action-setup@v4
29
30
+ run_install: true
31
32
+ - name: Build project
33
+ run: pnpm run build
34
35
+ - name: Deploy to GitHub Pages
36
+ uses: peaceiris/actions-gh-pages@v4
37
38
+ github_token: ${{ secrets.GITHUB_TOKEN }}
39
+ publish_dir: ./dist
0 commit comments