Skip to content

Commit

Permalink
ci: Add deploy to production via actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 committed Apr 13, 2023
1 parent 7ef8902 commit d2695f7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-to-supabase-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy Migrations to Production

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
environment: production
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, 'skip ci')"

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
PRODUCTION_PROJECT_ID: ${{ secrets.PROJECT_ID }}

steps:
- uses: actions/checkout@v3

- uses: supabase/setup-cli@v1
with:
version: 1.50.4

- run: |
supabase link --project-ref $PRODUCTION_PROJECT_ID
supabase db push

1 comment on commit d2695f7

@vercel
Copy link

@vercel vercel bot commented on d2695f7 Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.