Skip to content

trigger deployment

trigger deployment #13

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"
- run: npm ci
- name: Build
if: github.event_name == 'pull_request' && github.event.action == 'opened'
env:
NEON_DATABASE_URL: ${{secrets.NEON_DATABASE_URL}}
run: npm run build
- name: Apply Prisma Migrations
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
NEON_DATABASE_URL: ${{secrets.NEON_DATABASE_URL}}
run: |
n=1
until n==6
do
npx prisma migrate deploy && break
n=$[$n+1]
sleep 3
done