Skip to content

Commit 13be4d7

Browse files
wow-mileyclaude
andauthored
Fix signing key format and bump to v0.2.1 (#431)
* Bump version to 0.2.1 for Maven Central publish The v0.2.0 tag pointed to a commit before the publish workflow fix, so re-releasing as 0.2.1 with the corrected task configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Decode base64 signing key before passing to Gradle The SIGNING_KEY secret is base64-encoded but the vanniktech plugin's in-memory signing expects a raw ASCII-armored PGP key. Decode it in a separate step before publishing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 95397d2 commit 13be4d7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,21 @@ jobs:
5454
- name: Run tests before publish
5555
run: ./gradlew :ampere-core:jvmTest
5656

57+
- name: Decode signing key
58+
env:
59+
SIGNING_KEY_BASE64: ${{ secrets.SIGNING_KEY }}
60+
run: echo "$SIGNING_KEY_BASE64" | base64 -d > /tmp/signing-key.asc
61+
5762
- name: Publish to Maven Central
5863
if: ${{ github.event.inputs.dry_run != 'true' }}
5964
env:
6065
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
6166
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
6267
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
63-
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
6468
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
65-
run: ./gradlew :ampere-core:publishAllPublicationsToMavenCentralRepository
69+
run: |
70+
export ORG_GRADLE_PROJECT_signingInMemoryKey="$(cat /tmp/signing-key.asc)"
71+
./gradlew :ampere-core:publishAllPublicationsToMavenCentralRepository
6672
6773
- name: Dry run publish
6874
if: ${{ github.event.inputs.dry_run == 'true' }}

0 commit comments

Comments
 (0)