-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.16 KB
/
prod-deploy.yaml
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
name: Vercel Prod Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_PROD_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROD_PROJECT_ID }}
NODE_ENV: production
DATABASE_URL: "libsql://for-build.db"
AUTH_SECRET: "for-build"
SLACK_CLIENT_ID: "for-build"
SLACK_CLIENT_SECRET: "for-build"
AUTH_GOOGLE_SECRET: "for-build"
NEXT_PUBLIC_URL: "https://recaply.io"
OPENAI_API_KEY: "for-build"
RESEND_API_KEY: "for-build"
TRIGGER_API_APP_ID: "for-build"
TRIGGER_API_KEY: "for-build"
TRIGGER_API_URL: https://api.trigger.dev
on:
push:
branches:
- master
jobs:
Deploy-Prod:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Tools
run: npm install --global vercel@latest [email protected]
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_PROD_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_PROD_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_PROD_TOKEN }}