Skip to content

Commit

Permalink
Merge pull request #41 from Bandwidth/task/split-get-set-env-steps
Browse files Browse the repository at this point in the history
DX-2005 Split the get and set of the release version env variable
  • Loading branch information
hamermike authored Aug 3, 2021
2 parents 7eac705 + 9b14d46 commit bed8180
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Get Maven project version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV

- name: Set Maven project version
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
mvn versions:set -DnewVersion=$RELEASE_VERSION
run: mvn versions:set -DnewVersion=$RELEASE_VERSION

- name: Publish to Apache Maven Central
run: mvn deploy
Expand Down

0 comments on commit bed8180

Please sign in to comment.