Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Vercel Production

Vercel Production #701

name: Vercel Production
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: vercel-production-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
promote:
name: Promote
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Promote to production
run: npx vercel --token ${VERCEL_TOKEN} --prod
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}