Skip to content

Merge branch 'main' into staging #46

Merge branch 'main' into staging

Merge branch 'main' into staging #46

Workflow file for this run

name: Spirit Wave AI
on: [push]
jobs:
run-ci:
name: Run CI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Use Deno v1 latest
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: npm ci
name: Install CI dependencies
- run: npm run lint:js
name: Lint www
- run: npm run lint:ts
name: Lint supabase/functions
deploy-staging:
if: github.ref_name == 'staging'
needs: run-ci
name: Staging Deployment Check
uses: ./.github/workflows/deploy.yml
with:
project-id: ${{ vars.STAGING_SUPABASE_PROJECT_ID}}
secrets:
token: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
db-password: ${{ secrets.STAGING_SUPABASE_DB_PASSWORD}}
deploy-production:
if: github.ref_name == 'main'
needs: run-ci
name: Production Deployment check
uses: ./.github/workflows/deploy.yml
with:
project-id: ${{ vars.SUPABASE_PROJECT_ID }}
secrets:
token: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
db-password: ${{ secrets.SUPABASE_DB_PASSWORD }}