Skip to content

compose test

compose test #72

Workflow file for this run

name: Production Deploy
# on:
# push:
# branches:
# - main
# paths:
# - 'web/**'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
production_deploy:
runs-on: ubuntu-latest
env:
CG_KEY: ${{ vars.CG_KEY }}
API_URL: ${{ vars.API_URL }}
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install yarn
run: npm install -g yarn
- name: Install Vercel CLI
run: npm i -g vercel
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Pull vercel setup
run: vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
env:
NITRO_PRESET: vercel
run: vercel build --prod
- name: Deploy Project Artifacts to Vercel
run: >
vercel
deploy
--prod
--prebuilt
--token=${{ secrets.VERCEL_TOKEN }}