Skip to content

Commit

Permalink
Fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund authored Aug 17, 2023
1 parent 29f9347 commit def6ae1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -16,8 +20,4 @@ jobs:
run: npm install
- run: npm run build
- name: Apply all pending migrations to the database
run: npm exec --workspace=@usealma/client prisma migrate deploy
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
run: npm exec --workspace=@usealma/client prisma migrate deploy

0 comments on commit def6ae1

Please sign in to comment.