name: deploy on: workflow_run: workflows: [Docker] types: [completed] branches: [main] concurrency: group: production cancel-in-progress: true jobs: deploy: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} environment: production steps: - uses: actions/checkout@v3 - uses: superfly/flyctl-actions/setup-flyctl@master - run: flyctl -c etc/fly.toml deploy --remote-only env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}