From c01024f0a06ed827e7debbf4d5312048daa290f4 Mon Sep 17 00:00:00 2001 From: Martin Nonnenmacher Date: Wed, 9 Oct 2024 15:52:36 +0200 Subject: [PATCH] ci: Print debug output when publishing to Maven Central Print additional debug output to figure out why signing the release artifacts is failing. Signed-off-by: Martin Nonnenmacher --- .github/workflows/docker-build.yml | 2 +- .github/workflows/release.yml | 13 +++++++++++-- .../ort-server-publication-conventions.gradle.kts | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 09bb0af80..587760391 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -6,7 +6,7 @@ on: - main tags: - "[0-9]+.[0-9]+.[0-9]+" - - "[0-9]+.[0-9]+.[0-9]+-RC[0-9]+" + #- "[0-9]+.[0-9]+.[0-9]+-RC[0-9]+" workflow_dispatch: env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b19148e51..6ee1ed63e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,13 @@ jobs: with: dependency-graph: generate-and-submit + # The secret ORG_GPG_KEY_ID contains the last 16 characters of the fingerprint, but Gradle expects only the last 8. +# - name: Get the GPG_KEY_ID +# env: +# ORG_GPG_KEY_ID: ${{ secrets.ORG_GPG_KEY_ID }} +# run: | +# echo "ORG_GPG_KEY_ID=${ORG_GPG_KEY_ID: -8}" >> $GITHUB_ENV + - name: Publish to OSSRH env: GITHUB_DEPENDENCY_GRAPH_REF: refs/heads/main @@ -41,9 +48,11 @@ jobs: ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_OSSRH_PASSWORD }} ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: true ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GPG_PRIVATE_KEY }} - ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GPG_KEY_ID }} +# ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ env.ORG_GPG_KEY_ID }} + ORG_GRADLE_PROJECT_signingInMemoryKeyId: 437c0602 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GPG_PASSPHRASE }} - run: ./gradlew --no-configuration-cache publishAndReleaseToMavenCentral + #run: ./gradlew --stacktrace --no-configuration-cache publishAndReleaseToMavenCentral + run: ./gradlew --stacktrace --no-configuration-cache publishToMavenLocal - name: Generate Release Notes # Temporary implementation for the very first release. The release notes for this will be written by hand as they diff --git a/buildSrc/src/main/kotlin/ort-server-publication-conventions.gradle.kts b/buildSrc/src/main/kotlin/ort-server-publication-conventions.gradle.kts index a8d208d5f..17089e0c4 100644 --- a/buildSrc/src/main/kotlin/ort-server-publication-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/ort-server-publication-conventions.gradle.kts @@ -71,4 +71,5 @@ mavenPublishing { } publishToMavenCentral() +// signAllPublications() }