# Optional Fly.io deploy — manual only. Production deploy is on Render.
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
# Requires FLY_API_TOKEN secret. Docs: .cursor/rules/fly-deploy.mdc

name: Fly Deploy
on:
  workflow_dispatch:
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 }}
