Skip to content

Commit feb08f0

Browse files
committed
Try fix release workflow
1 parent 16b5738 commit feb08f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ jobs:
146146
server-password-env-var: MAVEN_CENTRAL_TOKEN
147147
gpg-passphrase-env-var: MAVEN_GPG_PASSPHRASE
148148

149+
# Required or Sonatype plugin will fail
150+
- name: Downgrade Maven version to 3.9
151+
run: |
152+
sed -i -E '/^distributionUrl=/s/[0-9]+\.[0-9]+\.[0-9]+/3.9.11/g' .mvn/wrapper/maven-wrapper.properties
153+
149154
- name: Publish to Central Portal
150155
run: ../mvnw -B deploy -P publish,publish-sonatype-central-portal
151156
working-directory: src

0 commit comments

Comments
 (0)