Skip to content

Commit de3b5f9

Browse files
committed
feat: add workflows for cevel hosting
1 parent ce35893 commit de3b5f9

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)