Skip to content

Deploy to Fly

Deploy to Fly #1116

Workflow file for this run

name: Deploy to Fly
on:
workflow_run:
workflows: [CI]
types: [completed]
jobs:
deploy:
if: |
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == github.event.repository.default_branch
concurrency: fly-deploy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: |
echo "RUBY_VERSION=$(cat .ruby-version)" >> $GITHUB_ENV
- uses: dentarg/fly@main
with:
build-args: "RUBY_VERSION=${{ env.RUBY_VERSION }}"
fly-token: ${{ secrets.FLY_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}