feat(ui): dynamic ogimage metadata for prof and course pages (#346) #14
Workflow file for this run
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: Tag Deployment Production Promotion | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
push: | |
# Pattern matched against refs/tags | |
tags: | |
- "*" # Push events to every tag not containing / | |
jobs: | |
Deploy-Production: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Vercel CLI | |
run: npm install --global vercel@latest | |
- name: Deploy Project to Vercel, built remotely | |
run: | | |
vercel --prod --token=${{ secrets.VERCEL_TOKEN }} >deployment-url.txt | |
echo "deploymentUrl=$(cat deployment-url.txt)" | |
- name: Promote new Production version | |
run: | | |
vercel promote $(cat deployment-url.txt) \ | |
--token=${{ secrets.VERCEL_TOKEN }} \ | |
--scope=${{ secrets.VERCEL_TEAM_NAME }} | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
# SENTRY_URL: https://sentry.io/ | |
with: | |
environment: production |