Skip to content

Deploy Fly STAGE

Deploy Fly STAGE #180

Workflow file for this run

name: Deploy Fly STAGE
on:
workflow_dispatch:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
concurrency:
group: deploy-fly-stage-${{ github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Deploy
if: |
github.event_name == 'workflow_dispatch' ||
(
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.head_branch == 'main'
)
runs-on: ubuntu-latest
steps:
# This step checks out a copy of your repository.
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}
# This step runs `flyctl deploy`.
- uses: superfly/flyctl-actions@fc53c09e1bc3be6f54706524e3b82c4f462f77be # v1
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
with:
args: "deploy -c build/agentjido-stage.toml -a agentjido-stage --remote-only"