Skip to content

GitHub Action deploy to vercel #1

GitHub Action deploy to vercel

GitHub Action deploy to vercel #1

Workflow file for this run

name: Deploy
on:
discussion:
types: [created, edited]
push:
branches:
- next14
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Vercel cli
run: npm install -g vercel
- name: Setup
run: vercel pull --yes --environment=prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Build
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}