ci: attempt to fix seeding #71
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: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
name: Run release | |
steps: | |
- name: Checkout code so that it is available to use in the executing runner | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 21.7.3 | |
- name: Install Semantic Release and plugins | |
run: | | |
npm install -g [email protected] \ | |
[email protected] \ | |
@semantic-release/[email protected] \ | |
@semantic-release/[email protected] \ | |
@semantic-release/[email protected] \ | |
@semantic-release/[email protected] | |
- name: Semantic Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }} | |
deploy: | |
needs: release | |
runs-on: ubuntu-latest | |
env: | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} | |
PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
steps: | |
- name: Checkout code so that it is available to use in the executing runner | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Supabase CLI | |
uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- name: Link Supabase to Project | |
run: supabase link --project-ref $PROJECT_ID | |
- name: Run Migrations and Seeds | |
run: supabase db push --include-seed |