Skip to content

Commit

Permalink
ci: Print debug output when publishing to Maven Central
Browse files Browse the repository at this point in the history
Print additional debug output to figure out why signing the release
artifacts is failing.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
  • Loading branch information
mnonnenmacher committed Oct 9, 2024
1 parent e7631fd commit c01024f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,25 @@ 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
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_OSSRH_USERNAME }}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ mavenPublishing {
}

publishToMavenCentral()
// signAllPublications()
}

0 comments on commit c01024f

Please sign in to comment.