Skip to content

Commit

Permalink
deploy only if CI is succesful
Browse files Browse the repository at this point in the history
  • Loading branch information
mpressen committed Nov 22, 2024
1 parent 8159b84 commit 6a0b436
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ concurrency:
cancel-in-progress: true

on:
push:
branches: [main]
workflow_run:
workflows: ["CI"]
types:
- completed
branches:
- main


jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout code
Expand Down

0 comments on commit 6a0b436

Please sign in to comment.