Skip to content

Commit a5eedf9

Browse files
authored
Update deploy-gh-pages.yml
Signed-off-by: CØDE N!NJΔ <najaf.shaikh@gmail.com>
1 parent eec24ac commit a5eedf9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33

44
on:
55
push:
6-
branches: [ main ] # Change to 'master' if needed
6+
branches: [ master ] # Change to 'master' if needed
77

88
permissions:
99
contents: read
@@ -33,16 +33,17 @@ jobs:
3333
- name: Install dependencies
3434
run: npm ci
3535

36-
- name: Build React app
36+
- name: Build with Vite
3737
run: npm run build
38+
# Ensure your package.json has: "build": "vite build"
3839

3940
- name: Setup GitHub Pages
4041
uses: actions/configure-pages@v4
4142

42-
- name: Upload to GitHub Pages
43+
- name: Upload artifact to Pages
4344
uses: actions/upload-pages-artifact@v3
4445
with:
45-
path: './dist'
46+
path: ./dist # Vite default output directory
4647

4748
- name: Deploy to GitHub Pages
4849
id: deployment

0 commit comments

Comments
 (0)