Skip to content

Commit 6a430a6

Browse files
Remove DB reset/seed from deploy prep action
Remove the database reset/seed scripts from "Deployment Preparation" GH action, and rely on doing this manually as needed.
1 parent 6777c97 commit 6a430a6

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

.github/workflows/deployment-prep.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,10 @@ jobs:
5454
- name: Stop PostgreSQL (test DB)
5555
run: npm run pg:down
5656

57-
- name: Optionally reset production DB
58-
env:
59-
DATABASE_URL: ${{ secrets.DATABASE_URL }}
60-
RESET_DB: ${{ secrets.RESET_DB }}
61-
if: ${{ env.RESET_DB == 'true' }}
62-
run: npm run db:reset -- --force --skip-generate
63-
6457
- name: Deploy migrations to production DB
6558
env:
6659
DATABASE_URL: ${{ secrets.DATABASE_URL }}
6760
run: npx prisma migrate deploy
6861

69-
- name: Optionally seed production DB
70-
env:
71-
AUTHOR_PASSWORD: ${{ secrets.AUTHOR_PASSWORD }}
72-
DATABASE_URL: ${{ secrets.DATABASE_URL }}
73-
SEED_DB: ${{ secrets.SEED_DB }}
74-
if: ${{ env.SEED_DB == 'true' }}
75-
run: npm run db:seed
76-
7762
- name: Deployment preparation completed
7863
run: echo "✔ Deployment preparation complete."

0 commit comments

Comments
 (0)