feat: add function to check if username is taken #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Migrations to Staging | |
on: | |
push: | |
branches: | |
- staging | |
workflow_dispatch: | |
jobs: | |
deploy: | |
environment: staging | |
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 }} | |
STAGING_PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: supabase/setup-cli@v1 | |
with: | |
version: 1.142.2 | |
- run: | | |
supabase link --project-ref $STAGING_PROJECT_ID | |
supabase db push | |
supabase functions deploy |