Skip to content

fix: NQL rate formatting and course_enrollments routing (#90) (#91) #1

fix: NQL rate formatting and course_enrollments routing (#90) (#91)

fix: NQL rate formatting and course_enrollments routing (#90) (#91) #1

name: Deploy Production
on:
push:
branches: [main]
jobs:
deploy:
name: Vercel production deployment
runs-on: ubuntu-latest
# Only run when Vercel secrets are configured
if: ${{ vars.VERCEL_PROJECT_ID != '' }}
environment:
name: production
url: ${{ steps.deploy.outputs.url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel environment (production)
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
- name: Build
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
- name: Deploy
id: deploy
run: |
url=$(vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }})
echo "url=$url" >> "$GITHUB_OUTPUT"
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}