diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b18c3d9..da869440 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}