diff --git a/.github/workflows/java-cd.yml b/.github/workflows/java-cd.yml index 7debeae986..e31eb9b61e 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -233,7 +233,6 @@ jobs: run: | export ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderName="Authorization" export ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderValue="Bearer $(echo "${{ secrets.CENTRAL_TOKEN_USERNAME }}:${{ secrets.CENTRAL_TOKEN_PASSWORD }}" | base64)" - export RUN_DEPLOYMENT_TEST=true export GLIDE_RELEASE_VERSION=${{ env.RELEASE_VERSION }} ./gradlew run diff --git a/java/build.gradle b/java/build.gradle index 72c549812c..8ff6425228 100644 --- a/java/build.gradle +++ b/java/build.gradle @@ -13,7 +13,7 @@ repositories { subprojects { repositories { // Runs for GITHUB_ACTIONS for testing release Maven deployment. - if(System.getenv("RUN_DEPLOYMENT_TEST")) { + if(System.getenv("ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderName")) { maven { name = "centralManualTesting" url "https://central.sonatype.com/api/v1/publisher/deployments/download/"