Skip to content

Commit fccbbea

Browse files
authored
Merge pull request #74 from Kyutech-Code-Lab/develop
develop->main
2 parents 216e411 + edd4e68 commit fccbbea

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Vercel Preview Deployment
2+
3+
env:
4+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
6+
7+
on:
8+
push:
9+
branches-ignore:
10+
- main
11+
12+
jobs:
13+
Deploy-Preview:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install Vercel CLI
18+
run: npm install --global vercel@latest
19+
- name: Pull Vercel Environment Information
20+
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
21+
- name: Build Project Artifacts
22+
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
23+
- name: Deploy Project Artifacts to Vercel
24+
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Vercel Production Deployment
2+
3+
env:
4+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
Deploy-Production:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install Vercel CLI
18+
run: npm install --global vercel@latest
19+
- name: Pull Vercel Environment Information
20+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
21+
- name: Build Project Artifacts
22+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
23+
- name: Deploy Project Artifacts to Vercel
24+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)