Skip to content

Deploy from main

Deploy from main #297

Workflow file for this run

name: deploy
run-name: Deploy from ${{ github.event.workflow_run.head_branch }}
on:
workflow_run:
workflows: [check]
branches: [main]
types: [completed]
concurrency:
group: "${{ github.event.workflow_run.head_branch }}-${{ github.event.workflow_run.conclusion }}"
cancel-in-progress: true
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Set up Flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy
run: |
flyctl scale count 1 --yes
flyctl deploy --remote-only --ha=false --memory=512