Skip to content

Commit e5ea95d

Browse files
authored
Added the RELEASE_VERSION to the deploy script (#14)
1 parent 923e8ad commit e5ea95d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/actions/deploy/entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ cat << EOF > tempsettings.xml
1919
</settings>
2020
EOF
2121

22+
mvn versions:set -DnewVersion=$RELEASE_VERSION
23+
2224
mvn --settings ./tempsettings.xml deploy

.github/workflows/deploy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v1
15+
- name: Set release version
16+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
1517
- name: Java Maven Upload
1618
uses: ./.github/actions/deploy-maven
1719
env:
1820
MVN_USERNAME: ${{ secrets.MVN_USERNAME }}
1921
MVN_PASSWORD: ${{ secrets.MVN_PASSWORD }}
2022
GPG_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}
23+
RELEASE_VERSION: $RELEASE_VERSION

0 commit comments

Comments
 (0)