Skip to content

Commit

Permalink
OZ-689: Ensure publish job runs only after validation
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Oct 11, 2024
1 parent 7b3c46f commit 72a0acf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:

publish:
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
needs: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
with:
java-version: 8
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

0 comments on commit 72a0acf

Please sign in to comment.