Skip to content

Commit 9874d4d

Browse files
committed
ci: fix
1 parent 8de1bdc commit 9874d4d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ jobs:
5959
run: npx semantic-release --dry-run --branches 9520_gha # Uncomment for testing purposes
6060

6161
- name: Publish to Maven Central
62+
if: startsWith(github.ref, 'refs/tags/v')
6263
env:
63-
TRAVIS_TAG: ${{ github.event.release.tag_name }} # for setMavenVersion
64+
# TRAVIS_TAG: ${{ github.event.release.tag_name }} # for setMavenVersion
65+
TRAVIS_TAG: ${GITHUB_REF##*/} # for setMavenVersion
6466
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} # for .travis.settings.xml
65-
OSSRH_PASSWORD: ${{ secrets.OSSRH_USERNAME }}
67+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
6668
run: |
6769
build/setupSigning.sh
6870
build/setMavenVersion.sh

build/setMavenVersion.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# This script will check $TRAVIS_TAG to see if we need to run maven to
44
# set the artifact version #'s.
5+
printf "\n>>>>> WWW Setting artifact version #'s to: %s\n" ${TRAVIS_TAG:1}
56

67
if [[ -n "${TRAVIS_TAG}" ]]; then
78
printf "\n>>>>> Setting artifact version #'s to: %s\n" ${TRAVIS_TAG:1}

0 commit comments

Comments
 (0)