Skip to content

Commit 4c9497b

Browse files
committed
ci: fix
1 parent 22f9baa commit 4c9497b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@ jobs:
8484
run: npx semantic-release # --dry-run --branches 9662_addcheck
8585

8686
- name: Publish to Maven Central
87+
if: ${{ steps.next_release.outputs.NEXT_RELEASE }}
8788
env:
88-
GHA_TAG: "refs/tags/v9.2.2" # for setMavenVersion_gha
89+
GHA_TAG: "refs/tags/v${{ steps.next_release.outputs.NEXT_RELEASE }}" # for setMavenVersion_gha
8990
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} # for .travis.settings.xml
9091
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
9192
GPG_KEYNAME: ${{ secrets.SIGNING_KEY }}
9293
GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
9394
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} # for setupSigning_gha
9495
run: |
96+
echo "The NEXT_RELEASE - ${{ steps.next_release.outputs.NEXT_RELEASE }}"
9597
echo -e "\n\033[0;35mCommand: setupSigning"
9698
build/setupSigning_gha.sh
9799
echo -e "\n\033[0;35mCommand: setMavenVersion"
@@ -100,6 +102,7 @@ jobs:
100102
mvn deploy --settings build/.travis.settings.xml -DskipITs -Dskip.unit.tests -P central $MVN_ARGS
101103
102104
- name: Publish Java docs
105+
if: ${{ steps.next_release.outputs.NEXT_RELEASE }}
103106
env:
104107
GH_TOKEN: ${{ secrets.GH_TOKEN }}
105108
GHA_REPO_SLUG: ${{ github.repository }}
@@ -108,7 +111,7 @@ jobs:
108111
GHA_BUILD_NUMBER: ${{ github.run_number }}
109112
GHA_JOB_NUMBER: ${{ github.job_number }}
110113
GHA_COMMIT: ${{ github.sha }}
111-
GHA_TAG: "refs/tags/v9.2.2" # for setMavenVersion_gha
114+
GHA_TAG: "refs/tags/v${{ steps.next_release.outputs.NEXT_RELEASE }}" # for setMavenVersion_gha
112115
run: |
113116
build/setMavenVersion_gha.sh
114117
mvn clean javadoc:aggregate $MVN_ARGS
@@ -118,4 +121,3 @@ jobs:
118121
if: ${{ steps.is_new_release.outputs.IS_NEW_RELEASE == '0' }}
119122
run: |
120123
echo -e "\n\033[0;35mCommand: Skipping the deployment because semantic release has determined there are no relevant changes that warrent a new release.\n"
121-
echo "The NEXT_RELEASE - ${{ steps.next_release.outputs.NEXT_RELEASE }}"

0 commit comments

Comments
 (0)