Skip to content

Commit

Permalink
refactor(deploy): run deploy workflow only if tests succeeded
Browse files Browse the repository at this point in the history
Signed-off-by: Sphericalkat <[email protected]>
  • Loading branch information
SphericalKat committed May 29, 2023
1 parent 44b3f41 commit 03b74fd
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Fly Deploy
on: [push]
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
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

0 comments on commit 03b74fd

Please sign in to comment.