feat(client): blog feature #757
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: read | |
env: | |
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_PASSWORD }} | |
FORCE_COLOR: 1 | |
jobs: | |
ci: | |
runs-on: self-hosted | |
timeout-minutes: 5 | |
steps: | |
- name: 📦 Checkout Repository | |
uses: actions/checkout@v4 | |
- name: 🛠️ Setup Biome | |
uses: biomejs/setup-biome@v2 | |
- name: 🚀 Run Biome | |
run: biome ci | |
- if: github.ref == 'refs/heads/main' | |
name: 🚀 Setup Supabase CLI | |
uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- if: github.ref == 'refs/heads/main' | |
name: 🚀 Deploy migrations | |
continue-on-error: true | |
run: | | |
supabase link --project-ref ${{ env.SUPABASE_PROJECT_ID }} | |
supabase db push --include-all -p ${{ env.SUPABASE_DB_PASSWORD }} |