Skip to content

Merge pull request #11 from kitravee/7-connect-database #1

Merge pull request #11 from kitravee/7-connect-database

Merge pull request #11 from kitravee/7-connect-database #1

Workflow file for this run

name: Production Tag Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
# Pattern matched against refs/tags
tags:
- "preview/*" # Push events to every tag not containing /
jobs:
Deploy-Production:
environment: Production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install pnpm
run: npm install -g pnpm@6
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --target preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --target preview --token=${{ secrets.VERCEL_TOKEN }}