Skip to content

Deploy to Fly

Deploy to Fly #1

Workflow file for this run

name: Deploy to Fly
on:
workflow_dispatch:
workflow_run:
workflows: [ruby]
types: [completed]
branches:
- 'main'
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/[email protected]
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
cifail:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'CI failed, not deploying.'