Skip to content

Commit 1d4ca69

Browse files
author
Kim HyunChang
committed
GitHub Pages 배포 설정 추가
1 parent 97e728b commit 1d4ca69

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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@v3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '18'
19+
20+
- name: Install Dependencies
21+
run: |
22+
cd frontend
23+
npm install
24+
25+
- name: Build
26+
run: |
27+
cd frontend
28+
npm run build
29+
30+
- name: Deploy
31+
uses: JamesIves/github-pages-deploy-action@v4
32+
with:
33+
folder: frontend/dist
34+
branch: gh-pages

frontend/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ export default defineConfig({
2626
},
2727
},
2828
},
29+
base: '/OpenBadge-Recommender/', // GitHub 저장소 이름과 동일하게 설정
2930
})

0 commit comments

Comments
 (0)