From 8c88585281dcb797ff2ee8c7848d2c8a20645de6 Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Thu, 19 Dec 2024 11:47:08 +0100 Subject: [PATCH] Build artifact --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c20077e..cd93ea9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: passphrase: ${{ secrets.MAVEN_GPG_PRIVATE_KEY_PASSWORD }} - name: Bump version without tagging - if: github.ref == 'refs/heads/trunk' + if: github.ref == 'refs/heads/build' id: git_tag_dry_run uses: anothrNick/github-tag-action@v1 env: @@ -35,14 +35,14 @@ jobs: DRY_RUN: true - name: "mvn deploy -Prelease" - if: github.ref == 'refs/heads/trunk' + if: github.ref == 'refs/heads/build' #Workaround: -Dmaven.resolver.transport=wagon for failed deployments https://github.com/community/community/discussions/49001 run: mvn -Drevision=${{steps.git_tag_dry_run.outputs.new_tag}} -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PRIVATE_KEY_PASSWORD }} deploy -B -U -Prelease -Dmaven.resolver.transport=wagon env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Bump version again and push git tag - if: github.ref == 'refs/heads/trunk' + if: github.ref == 'refs/heads/build' id: git_tag uses: anothrNick/github-tag-action@v1 env: