Skip to content

Commit 044b1b6

Browse files
committed
fix: Update GH CI workflow to include migrations
1 parent e8f7ab8 commit 044b1b6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/fly-deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ jobs:
1616
- run: flyctl deploy --remote-only
1717
env:
1818
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
19+
migrate:
20+
name: Run migrations
21+
runs-on: ubuntu-latest
22+
needs: deploy
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: superfly/flyctl-actions/setup-flyctl@master
26+
- run: flyctl ssh console -C 'python manage.py migrate'
27+
env:
28+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)