From 07242530c98ce480b3d4a8973deaaa7e40095d84 Mon Sep 17 00:00:00 2001 From: Kevin Heise Date: Thu, 14 Mar 2024 11:49:42 +0100 Subject: [PATCH] fail if curl does not work --- .github/workflows/ci-java.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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