Skip to content

Create deploy.yml

Create deploy.yml #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{secrets.SUPABASE_DB_PASSWORD}}
PROJECT_ID: ${{secrets.STAGING_PROJECT_ID}}
steps:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Run Database Migrations
run: |
supabase link --project-ref $PROJECT_ID
supabase db push
- name: Deploy
run: supabase functions deploy --project-ref $PROJECT_ID --debug