Skip to content

Commit

Permalink
Add fly deploy for main
Browse files Browse the repository at this point in the history
  • Loading branch information
azlyth committed Feb 10, 2025
1 parent a7be94c commit 6155dfc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to Fly.io

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy apps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Flyctl
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy Database
working-directory: db
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: flyctl deploy --remote-only

- name: Deploy Backend
working-directory: python-backend
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: |
flyctl deploy --remote-only
- name: Deploy Frontend
working-directory: frontend
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: flyctl deploy --remote-only

0 comments on commit 6155dfc

Please sign in to comment.