-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 918 Bytes
/
Copy pathdeploy.yml
File metadata and controls
38 lines (32 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy to GitHub Pages
on:
push:
branches: [ main ] # 또는 master, 주 브랜치 이름에 따라 다름
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: |
cd FRONT
npm ci
- name: Build
run: |
cd FRONT
npm run build
env:
VUE_APP_API_BASE_URL: ${{ secrets.VUE_APP_API_BASE_URL }}
VUE_APP_ODSAY_API_KEY: ${{ secrets.VUE_APP_ODSAY_API_KEY }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./FRONT/dist
publish_branch: gh-pages # 배포할 브랜치 이름