We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eec24ac commit a5eedf9Copy full SHA for a5eedf9
1 file changed
.github/workflows/deploy-gh-pages.yml
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
3
4
on:
5
push:
6
- branches: [ main ] # Change to 'master' if needed
+ branches: [ master ] # Change to 'master' if needed
7
8
permissions:
9
contents: read
@@ -33,16 +33,17 @@ jobs:
33
- name: Install dependencies
34
run: npm ci
35
36
- - name: Build React app
+ - name: Build with Vite
37
run: npm run build
38
+ # Ensure your package.json has: "build": "vite build"
39
40
- name: Setup GitHub Pages
41
uses: actions/configure-pages@v4
42
- - name: Upload to GitHub Pages
43
+ - name: Upload artifact to Pages
44
uses: actions/upload-pages-artifact@v3
45
with:
- path: './dist'
46
+ path: ./dist # Vite default output directory
47
48
- name: Deploy to GitHub Pages
49
id: deployment
0 commit comments