We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8f7ab8 commit 044b1b6Copy full SHA for 044b1b6
1 file changed
.github/workflows/fly-deploy.yml
@@ -16,3 +16,13 @@ jobs:
16
- run: flyctl deploy --remote-only
17
env:
18
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