We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f884af commit 80b0260Copy full SHA for 80b0260
2 files changed
.github/workflows/deploy.yml
@@ -0,0 +1,33 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ workflow_dispatch: # Allows manual triggering
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
16
+ - name: Setup Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: '18'
20
+ cache: 'npm'
21
22
+ - name: Install dependencies
23
+ run: npm ci
24
25
+ - name: Build project
26
+ run: npm run build
27
28
+ - name: Deploy to GitHub Pages
29
+ uses: peaceiris/actions-gh-pages@v3
30
31
+ github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ publish_dir: ./dist
33
+ publish_branch: gh-pages
.gitignore
@@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
+.vite
0 commit comments