Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,18 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: fly deploy --remote-only -a "$FLY_APP_NAME"

- name: Resume app if suspended
# A run of crash-restarts (e.g., bad env var) leaves the Fly
# app in a "Suspended" state at the edge — even a fresh
# healthy deploy can't lift it; the proxy returns 403 with
# x-deny-reason: host_not_allowed. Always issuing resume here
# is idempotent: if the app is already running, Fly returns
# success without side effects.
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: |
fly apps resume "$FLY_APP_NAME" || true

- name: Print live URL
run: |
echo "::notice title=Live at::https://$FLY_APP_NAME.fly.dev"
Expand Down