From dcf594b30e40e38907f5f85d494b6868867a361c Mon Sep 17 00:00:00 2001 From: Martijn Storck Date: Thu, 7 Dec 2023 12:21:38 +0100 Subject: [PATCH] Setup deploy action --- .github/workflows/fly.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/fly.yml diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml new file mode 100644 index 0000000..769bf2b --- /dev/null +++ b/.github/workflows/fly.yml @@ -0,0 +1,16 @@ +name: Deploy to fly.io + +on: + push: + branches: [ "main" ] + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + steps: + - uses: actions/checkout@v3 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only