diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml new file mode 100644 index 0000000000000000000000000000000000000000..3e693915fe6f99a5c2221b2921bf8ebc305180fc --- /dev/null +++ b/.github/workflows/fly-deploy.yml @@ -0,0 +1,30 @@ +name: deploy to fly.io + +on: + push: + branches: + - main + workflow_dispatch: + +concurrency: + group: fly-deploy-main + cancel-in-progress: true + +jobs: + deploy: + name: deploy sorter-fly-app + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup flyctl + uses: superfly/flyctl-actions/setup-flyctl@master + + - name: deploy + run: flyctl deploy --remote-only --ha=false --strategy immediate --wait-timeout 600 + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}