Files
mguilbert abed8a9cf4
Deploy Vercel / deploy-preprod (push) Has been skipped
Deploy Vercel / deploy-production (push) Successful in 1m13s
simplify vercel deployment steps in workflow
2026-06-09 10:02:00 +02:00

65 lines
1.3 KiB
YAML

name: Deploy Vercel
on:
push:
branches:
- main
- dev
pull_request:
jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: npm
# - name: Install
# run: npm ci
# - name: Lint
# run: npm run lint --if-present
# - name: Test
# run: npm test --if-present
deploy-preprod:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy preprod
run: npx vercel@latest deploy --yes
deploy-production:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy production
run: npx vercel@latest deploy --prod --yes