add auto deploy to fly.io

This commit is contained in:
Hayden 2022-09-09 11:12:25 -08:00
parent f4609a8110
commit 89591b2c60

View file

@ -5,6 +5,9 @@ on:
branches:
- main
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
backend-tests:
name: "Backend Server Tests"
@ -14,6 +17,16 @@ jobs:
name: "Frontend and End-to-End Tests"
uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
deploy:
runs-on: ubuntu-latest
needs:
- backend-tests
- frontend-tests
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
publish:
name: "Publish Nightly"
needs: