mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
5e6c63b0f8
- Split test suite into 3 parallel jobs (API, edge cases, web routes) - Change fly-deploy to trigger after Tests workflow succeeds - Remove duplicate test run from deploy workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
617 B
YAML
23 lines
617 B
YAML
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
|
|
|
|
name: Fly Deploy
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Tests"]
|
|
branches: [main]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy app
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
concurrency: deploy-group # optional: ensure only one action runs at a time
|
|
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 }}
|