diff --git a/.github/workflows/ci-java.yaml b/.github/workflows/ci-java.yaml index 7c587538..02073fa4 100644 --- a/.github/workflows/ci-java.yaml +++ b/.github/workflows/ci-java.yaml @@ -135,8 +135,9 @@ jobs: working-directory: java/build/repos/releases run: | zip -r package.zip . - curl --request POST \ - --header 'Authorization: Bearer $MAVEN_CENTRAL_BEARER_TOKEN' \ + curl --fail-with-body \ + --request POST \ + --header 'Authorization: Bearer ${MAVEN_CENTRAL_BEARER_TOKEN}' \ --form bundle=@package.zip \ https://central.sonatype.com/api/v1/publisher/upload