Skip to content

Commit f2137ae

Browse files
committed
Fix publish workflow
1 parent efee39c commit f2137ae

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,15 @@ jobs:
4343
java-version: '11'
4444
distribution: 'adopt'
4545
server-id: ossrh
46-
server-username: SONATYPE_USERNAME
47-
server-password: SONATYPE_PASSWORD
46+
server-username: MAVEN_USERNAME
47+
server-password: MAVEN_PASSWORD
4848
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
4949
gpg-passphrase: GPG_PRIVATE_KEY_PASSWORD
5050

5151
- name: Publish to Apache Maven Central
5252
if: github.event.release
53-
# Deploy only flink-elastic-catalog
5453
run: mvn -f pom.xml deploy -P release -DskipTests
5554
env:
56-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
57-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
55+
MAVEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
56+
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
5857
GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}

0 commit comments

Comments
 (0)