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 8c7791e commit 3ecbe38Copy full SHA for 3ecbe38
.github/workflows/deploy-demo.yml
@@ -0,0 +1,36 @@
1
+name: Deploy Demo
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repo
17
+ uses: actions/checkout@v4
18
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 20
23
24
+ - name: Install dependencies
25
+ working-directory: demo
26
+ run: npm ci
27
28
+ - name: Build Vite project
29
30
+ run: npm run build
31
32
+ - name: Deploy dist folder to GitHub Pages
33
+ uses: peaceiris/actions-gh-pages@v3
34
35
+ github_token: ${{ secrets.GITHUB_TOKEN }}
36
+ publish_dir: demo/dist
0 commit comments