Skip to content

Commit 28d2cff

Browse files
authored
Deploy on JDK 20, run tests pre-deploy
Signed-off-by: ascopes <73482956+ascopes@users.noreply.github.com>
1 parent a972755 commit 28d2cff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
distribution: zulu
4141
# Must use >= JDK 17 for Javadocs to generate correctly.
42-
java-version: 17
42+
java-version: 20
4343
server-id: ossrh
4444
server-username: OSSRH_USERNAME
4545
server-password: OSSRH_TOKEN
@@ -77,6 +77,10 @@ jobs:
7777
fi
7878
echo "release_version=${release_version}" >> "${GITHUB_ENV}"
7979
80+
- name: Run tests
81+
shell: bash
82+
run: ./mvnw -B -U -Dcheckstyle.skip=true clean verify
83+
8084
- name: Perform release to Staging
8185
id: maven-central-staging
8286
if: inputs.deploy-to-staging
@@ -106,7 +110,7 @@ jobs:
106110
-DreleaseVersion='${release_version}' \
107111
-DsignTag=false \
108112
-Dtag='v${release_version}' \
109-
release:prepare release:perform
113+
clean release:prepare release:perform
110114
SCRIPT
111115
112116
success "Release has been promoted to Nexus Staging successfully"

0 commit comments

Comments
 (0)