Skip to content

Commit

Permalink
Run deploy only if build is successful or it's a release event
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov authored Mar 3, 2023
1 parent ae24a68 commit 951f4a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
deploy-jar:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' || github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
sudo systemctl is-active sofia-supermarkets-api
deploy-proxy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' || github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- name: Publish worker to Cloudflare
Expand Down

0 comments on commit 951f4a6

Please sign in to comment.