conf: added deploy githubaction to supabase. Added package.json scrip… #1
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: Deploy to EC2 | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
#Deploy supabase | |
- name: Run Docker Compose | |
run: | | |
npm run supabase:remote:init | |
#Populate db | |
- name: Populate DB | |
env: | |
SUPABASE_DB_URL: ${{ secrets.SUPABASE_DB_URL }} | |
run: | | |
npx tsx tools/populateDbWithFakeData.ts |