Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to Vercel

on:
push:
branches: [main, stage]
branches: [main]

jobs:
deploy-production:
Expand All @@ -20,25 +20,5 @@ jobs:
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