GitHub Actions: Only deploy to maven repo on push event and not PRs

This commit is contained in:
Christian Koop 2023-05-07 18:25:00 +02:00
parent 880d9d36e0
commit a78c2a832e
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ jobs:
path: ${{ env.DEPLOYMENT_ARTIFACT_DIR }}/${{ env.DEPLOYMENT_ARTIFACT_SELECTOR }}
- name: Deploy to Maven repo
if: ${{ github.event_name == 'push' }}
uses: songoda/GH-Commons/.github/actions/maven_deploy@master
with:
repository_url: ${{ secrets.MAVEN_REPO_URL_RELEASES }}
@ -71,6 +72,7 @@ jobs:
maven_pom_path: ${{ env.DEPLOYMENT_POM_PATH }}
maven_out_dir: ${{ env.DEPLOYMENT_ARTIFACT_DIR }}
- name: Deploy parent pom.xml to Maven repo
if: ${{ github.event_name == 'push' }}
uses: songoda/GH-Commons/.github/actions/maven_deploy@master
with:
repository_url: ${{ secrets.MAVEN_REPO_URL_RELEASES }}