Skip to content

Commit c6ab75a

Browse files
committed
build(general): 🚀 Added Automatic Build Deploy with Vite for GitHub Pages
1 parent 576c338 commit c6ab75a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Vite to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
16+
- name: Install dependencies and build
17+
run: |
18+
npm install
19+
npm run build
20+
21+
- name: Deploy to GitHub Pages
22+
uses: JamesIves/github-pages-deploy-action@v4
23+
with:
24+
branch: gh-pages
25+
folder: dist

0 commit comments

Comments
 (0)