Skip to content

Commit

Permalink
fixed release job
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Włódarczyk committed Mar 10, 2024
1 parent 6d652e9 commit 13919e7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release-github-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,16 @@ jobs:
with:
distribution: 'adopt'
java-version: '17'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Build a project & run unit tests
run: mvn -B -ntp package

- name: Get the tag name
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Set version from git tag
run: mvn -B -ntp versions:set -DgenerateBackupPoms=false -DnewVersion="$TAG"

- name: Build a project & run unit tests
run: mvn -B -ntp package

- name: Add jar to Github Release
uses: svenstaro/upload-release-action@v2
continue-on-error: true
Expand Down

0 comments on commit 13919e7

Please sign in to comment.