Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Jan 17, 2024
1 parent 47bbbd7 commit ad47bc1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/web-release-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# - VERCEL_ORG_ID

name: Web Release
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
# release:
# types: [published]
Expand Down Expand Up @@ -51,14 +54,14 @@ jobs:
key: ${{ runner.os }}-node-modules-yarn-v1-${{ hashFiles('yarn.lock') }}

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

# Required build script defined in dashboard project `vercel.json`
- name: Build
run: npx vercel --local-config apps/picsa-apps/dashboard/vercel.json build --prod
run: npx vercel --local-config apps/picsa-apps/dashboard/vercel.json build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy
run: npx vercel --local-config apps/picsa-apps/dashboard/vercel.json deploy --prebuilt --prod
run: npx vercel --local-config apps/picsa-apps/dashboard/vercel.json deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

# TODO - run supabase db migrations (if required)
# TODO - handle staging/preview deploy (if required)
Expand Down

0 comments on commit ad47bc1

Please sign in to comment.