All checks were successful
Deploy to Vercel / deploy (push) Successful in 1m6s
36 lines
903 B
YAML
36 lines
903 B
YAML
name: Deploy to Vercel
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Enable pnpm via corepack
|
|
run: |
|
|
corepack enable
|
|
corepack prepare pnpm@10 --activate
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Verify Vercel credentials
|
|
run: |
|
|
[ -n "$VERCEL_TOKEN" ] && [ -n "$VERCEL_ORG_ID" ] && [ -n "$VERCEL_PROJECT_ID" ] || {
|
|
echo "::error::One or more Vercel secrets are missing"; exit 1
|
|
}
|
|
|
|
- name: Deploy
|
|
run: pnpm exec vercel deploy --prod --yes |