Skip to content

Fly Deploy CD

Fly Deploy CD #52

Workflow file for this run

name: Fly Deploy CD
on:
workflow_call:
workflow_run:
workflows: [Tests/Checks CI]
types: [completed]
branches: [main]
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
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 }}
tests-failure:
name: Tests failed
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'No deploy -- running tests failed'