-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.3 KB
/
deploy.yml
File metadata and controls
44 lines (39 loc) · 1.3 KB
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
39
40
41
42
43
44
name: Deploy to Vercel
on:
push:
branches: [main, stage]
jobs:
deploy-production:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to Vercel (Production)
uses: mountainash/deploy-to-vercel-action@v2.5.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PRODUCTION: true
ALIAS_DOMAINS: eatda.net
GITHUB_DEPLOYMENT: true
GITHUB_DEPLOYMENT_ENV: Production
deploy-preview:
if: github.ref == 'refs/heads/stage'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to Vercel (Preview)
uses: mountainash/deploy-to-vercel-action@v2.5.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PRODUCTION: false
ALIAS_DOMAINS: dev.eatda.net
GITHUB_DEPLOYMENT: true
GITHUB_DEPLOYMENT_ENV: Preview