We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599f1d8 commit 6a3ddb2Copy full SHA for 6a3ddb2
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,32 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20'
19
20
+ - name: Install dependencies
21
+ run: npm install
22
23
+ - name: Build
24
+ run: npm run build
25
26
+ - name: Deploy
27
+ uses: peaceiris/actions-gh-pages@v4
28
29
+ github_token: ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir: ./dist
31
+ # The base path is already configured in vite.config.ts, so no need to set it here again.
32
+ # If it wasn't, we might need to set a CNAME or adjust the base path in the build step.
0 commit comments