From 89591b2c60a7fbe96a95b97e29193737cb9fda3c Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:12:25 -0800 Subject: [PATCH] add auto deploy to fly.io --- .github/workflows/publish.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 20c0e6d..51e29e8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: