Skip to content

Fly Deploy

Fly Deploy #24

Workflow file for this run

# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Fly Deploy
on:
push:
branches:
- main
workflow_dispatch:
workflow_run:
workflows: ["Tag, Build, and Push Docker Image for Main Branch"]
types:
- completed
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
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 }}