Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

add auto deploy to fly.io

Hayden89591b2c60a7
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 20c0e6d4..51e29e84 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: