GitHub Actions: Only deploy to maven repo on push event and not PRs
This commit is contained in:
parent
880d9d36e0
commit
a78c2a832e
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue