Skip to content

Commit

Permalink
Merge pull request #213 from hypercerts-org/feat/rollout_arbitrum_aut…
Browse files Browse the repository at this point in the history
…o_seed_prod

feat(gha): automagically rollout seed
  • Loading branch information
bitbeckers authored Sep 12, 2024
2 parents e71a869 + 30d9800 commit ef604fd
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/supabase-ci-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,32 @@ jobs:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
- run: supabase link --project-ref $PROJECT_ID
- run: supabase db push
- run: supabase db push

run-seed-script:
needs: deploy-migrations
runs-on: ubuntu-latest
environment: production

env:
SUPABASE_CACHING_DB_URL: ${{ vars.SUPABASE_CACHING_DB_URL }}
SUPABASE_CACHING_SERVICE_API_KEY: ${{ secrets.SUPABASE_CACHING_SERVICE_API_KEY }}
OVERRIDE_LOCAL_DB_PROTECTION: "true"

steps:
- uses: actions/checkout@v4
- name: 'Install Node'
uses: actions/setup-node@v4
with:
node-version: '20.x'

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install dependencies
run: pnpm install

- name: Run seed script
run: npx tsx ./seed.ts

0 comments on commit ef604fd

Please sign in to comment.