-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.41 KB
/
dev.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
name: ZenQuest development deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
GOOGLE_ID: ${{ secrets.GOOGLE_ID }}
GOOGLE_SECRET: ${{ secrets.GOOGLE_SECRET }}
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET_DEV }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL_DEV }}
OPEN_AI: ${{ secrets.OPEN_AI }}
on:
push:
branches:
- development
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: ls existing variables
run: vercel env ls preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --local-config vercel-preview.json --debug --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: |
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > domain.txt
# vercel alias --scope ${{ secrets.VERCEL_TEAM_ID }} --token=${{ secrets.VERCEL_TOKEN }} set `cat domain.txt` zenQuest-preview.vercel.app