File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,18 +64,24 @@ jobs:
6464 echo "version=$VERSION" >> $GITHUB_OUTPUT
6565 echo "Publishing version: $VERSION"
6666
67+ - name : Decode GPG Key
68+ run : |
69+ echo "${{ secrets.SIGNING_KEY }}" | base64 --decode > /tmp/signing-key.asc
70+ echo "GPG key decoded successfully"
71+
6772 - name : Publish to Maven Central
6873 env :
6974 ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_USERNAME }}
7075 ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_PASSWORD }}
71- ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNING_KEY }}
7276 ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.SIGNING_KEY_ID }}
7377 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNING_PASSWORD }}
7478 run : |
79+ export ORG_GRADLE_PROJECT_signingInMemoryKey="$(cat /tmp/signing-key.asc)"
7580 ./gradlew publishAllPublicationsToMavenCentralRepository \
7681 -PVERSION_NAME=${{ steps.version.outputs.version }} \
7782 --no-daemon \
7883 --no-configuration-cache
84+ rm -f /tmp/signing-key.asc
7985
8086 # Create GitHub Release artifacts
8187 release-artifacts :
You can’t perform that action at this time.
0 commit comments