Files
fivedevs.com/.gitea/workflows/deploy.yml
Chris Smith 41d9132858
All checks were successful
Deploy to Vercel / deploy (push) Successful in 1m7s
optimize pnpm store
2026-04-30 15:04:47 +02:00

36 lines
937 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 --store-dir=/var/cache/pnpm-store
- 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