From 3b58d92b79becf5b07ee633d2acfd3e3b6aa8477 Mon Sep 17 00:00:00 2001 From: Wannes Gennar Date: Wed, 28 Feb 2024 01:01:54 +0100 Subject: [PATCH] setup Fly CD from Github Actions --- .github/workflows/fly.yml | 17 +++++++++++++++++ 1 file changed, 17 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..e014da1 --- /dev/null +++ b/.github/workflows/fly.yml @@ -0,0 +1,17 @@ +name: Fly Deploy +on: + push: + branches: + - master # change to main if needed +jobs: + deploy: + name: Deploy app + runs-on: ubuntu-latest + concurrency: deploy-group # optional: ensure only one action runs at a time + steps: + - uses: actions/checkout@v4 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +