Skip to content

Commit

Permalink
[build] 프로덕션 빌드 워크플로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lybell-art committed Jul 23, 2024
1 parent fda9b40 commit dd2138c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/deploy_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches:
- "dev"
- "feature/3-ssg"
jobs:
deploy-preview:
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/deploy_production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: deploy production
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- "main"
- "feature/3-ssg"
jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- name: pull code to computer
uses: actions/checkout@v4
- name: install node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: install vercel cli
run: npm install -g vercel
- name: deploy to vercel as production
run: |
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit dd2138c

Please sign in to comment.