Dev Deployment #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev Deployment | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEV_PROJECT_ID }} | |
on: | |
workflow_dispatch: | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
environment: development | |
env: | |
AUTH0_SCOPE: "openid profile email offline_access" | |
NEXT_PUBLIC_SUPPORT_EMAIL: "support@targabay.com" | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Delete robots.prod.txt in dev env | |
run: rm public/robots.prod.txt | |
- name: Setup CI | |
uses: ./.github/workflows/setup-ci | |
- name: Pull Vercel Environment Information | |
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build Project Artifacts | |
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Project Artifacts to Vercel | |
run: vercel deploy --force --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |