Skip to content

Commit 069c605

Browse files
committed
Update publishing
1 parent 8422128 commit 069c605

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)