Skip to content

Fly Deploy

Fly Deploy #118

Workflow file for this run

# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Fly Deploy
on:
# Since the `fly.toml` specifies the `latest` tag, we trigger this
# deployment whenever a new version is published to the container registry.
# @see: ghcr-publish.yml
workflow_run:
workflows: ["Publish to ghcr"]
types:
- completed
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Use flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to fly.io
run: flyctl deploy --local-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}