Skip to content

Commit

Permalink
Build artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Dec 19, 2024
1 parent 528fe7b commit 8c88585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 8c88585

Please sign in to comment.