Skip to content

Commit b2c8af0

Browse files
committed
ci: fix
1 parent b9652cf commit b2c8af0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ 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:
6364
GHA_TAG: ${{ github.ref }} # non PR only need to get last part
6465
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} # for .travis.settings.xml
65-
OSSRH_PASSWORD: ${{ secrets.OSSRH_USERNAME }}
66+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
6667
run: |
6768
build/setupSigning.sh
6869
build/setMavenVersion_gha.sh
69-
mvn deploy $MVN_ARGS --settings build/.travis.settings.xml -DskipITs -Dskip.unit.tests -P central
70+
mvn deploy --settings build/.travis.settings.xml -DskipITs -Dskip.unit.tests -P central $MVN_ARGS
7071
7172
- name: Publish Java docs
7273
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)