We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97e728b commit 1d4ca69Copy full SHA for 1d4ca69
2 files changed
.github/workflows/deploy.yml
@@ -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
27
28
+ npm run build
29
30
+ - name: Deploy
31
+ uses: JamesIves/github-pages-deploy-action@v4
32
33
+ folder: frontend/dist
34
+ branch: gh-pages
frontend/vite.config.ts
@@ -26,4 +26,5 @@ export default defineConfig({
},
+ base: '/OpenBadge-Recommender/', // GitHub 저장소 이름과 동일하게 설정
})
0 commit comments