Skip to content

Update deploy.yml

Update deploy.yml #284

Workflow file for this run

name: vercel-deploy
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches: [ main ]
jobs:
Deploy-Production:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4.1.7
- uses: pnpm/action-setup@v4.0.0
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }} and install vercel CLI
uses: actions/setup-node@v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm i -g vercel
- name: Deploy Project Vercel
run: |
rm -rf .vercel
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}