Skip to content

Commit

Permalink
handle prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
martypdx committed Oct 31, 2023
1 parent eaf1923 commit a8b5b10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 61 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml_onhold

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/deploy-test.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/spiritwave-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
name: Lint www
- run: npm run lint:ts
name: Lint supabase/functions

deploy:
if: github.ref_name == 'staging'
if: github.ref_name == 'staging' || github.ref_name == 'main'
needs: run-ci
name: Deploy to Staging
name: Deployment Check
uses: ./.github/workflows/deploy.yml
with:
project-id: ${{ vars.STAGING_SUPABASE_PROJECT_ID}}
project-id: ${{ github.ref_name == 'main' && vars.SUPABASE_PROJECT_ID || vars.STAGING_SUPABASE_PROJECT_ID}}
secrets:
token: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
db-password: ${{ secrets.STAGING_SUPABASE_DB_PASSWORD }}
db-password: ${{ github.ref_name == 'main' && secrets.SUPABASE_DB_PASSWORD || secrets.STAGING_SUPABASE_DB_PASSWORD}}

0 comments on commit a8b5b10

Please sign in to comment.