medium.rip/.github/workflows/deploy.yml

18 lines
381 B
YAML
Raw Permalink Normal View History

name: Fly Deploy
on:
workflow_run:
workflows: ["Run tests"]
branches: [main]
types:
- completed
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy to fly.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only