From c02b0fcead8a4571ea8e9b8d56ebc9448366dfe9 Mon Sep 17 00:00:00 2001 From: Mohamed Moustafa Date: Wed, 30 Oct 2024 23:13:57 -0400 Subject: [PATCH] Add Deploy to Fly.io action (#17) --- .github/workflows/fly.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..02b4a3b --- /dev/null +++ b/.github/workflows/fly.yml @@ -0,0 +1,21 @@ +name: 'Deploy to Fly.io' + +on: + push: + workflow_dispatch: + branches: + - master + +jobs: + deploy: + name: 'Deploy app' + runs-on: ubuntu-latest + concurrency: deploy-group + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + steps: + - uses: actions/checkout@v4 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only + +