Skip to content

Commit 5a36d77

Browse files
Reference home for key file location
1 parent b757634 commit 5a36d77

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ jobs:
1919
run: chmod +x gradlew
2020

2121
- name: Decode GPG key
22-
run: echo "${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}" | base64 --decode > ./secring.gpg
22+
run: echo "${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}" | base64 --decode > $HOME/secring.gpg
23+
24+
- name: Debug show GPG key file
25+
run: ls -l $HOME/secring.gpg || true
2326

2427
- name: Create gradle.properties
2528
run: |
2629
echo "signing.keyId=${{ secrets.SIGNING_KEY_ID }}" >> gradle.properties
2730
echo "signing.password=${{ secrets.SIGNING_PASSWORD }}" >> gradle.properties
28-
echo "signing.secretKeyRingFile=./../secring.gpg" >> gradle.properties
31+
echo "signing.secretKeyRingFile=$HOME/secring.gpg" >> gradle.properties
2932
echo "ossrhUsername=${{ secrets.OSSRH_USERNAME }}" >> gradle.properties
3033
echo "ossrhPassword=${{ secrets.OSSRH_PASSWORD }}" >> gradle.properties
3134
3235
- name: Build with Gradle
3336
run: ./gradlew build
3437

3538
- name: Prepare Central bundle
36-
run: ./gradlew prepareCentralBundle
39+
run: ./gradlew --info --stacktrace prepareCentralBundle
3740
- name: Upload bundle to Central Portal
3841
env:
3942
CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }}

tamarin-core/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,14 @@ publishing { //see https://docs.gradle.org/current/userguide/publishing_maven.ht
101101
}
102102

103103
signing {
104+
def ringFileProp = findProperty('signing.secretKeyRingFile')
105+
def keyId = findProperty('signing.keyId')
106+
def passSet = project.hasProperty('signing.password')
107+
if (ringFileProp) {
108+
def f = file(ringFileProp)
109+
logger.lifecycle("[Signing Debug] secretKeyRingFile='${f}' exists=${f.exists()} keyIdSet=${keyId != null} passSet=${passSet}")
110+
} else {
111+
logger.lifecycle("[Signing Debug] secretKeyRingFile is NOT set. keyIdSet=${keyId != null} passSet=${passSet}")
112+
}
104113
sign publishing.publications.mavenJava
105114
}

tamarin-desktop/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,14 @@ publishing { //see https://docs.gradle.org/current/userguide/publishing_maven.ht
113113
}
114114

115115
signing {
116+
def ringFileProp = findProperty('signing.secretKeyRingFile')
117+
def keyId = findProperty('signing.keyId')
118+
def passSet = project.hasProperty('signing.password')
119+
if (ringFileProp) {
120+
def f = file(ringFileProp)
121+
logger.lifecycle("[Signing Debug] secretKeyRingFile='${f}' exists=${f.exists()} keyIdSet=${keyId != null} passSet=${passSet}")
122+
} else {
123+
logger.lifecycle("[Signing Debug] secretKeyRingFile is NOT set. keyIdSet=${keyId != null} passSet=${passSet}")
124+
}
116125
sign publishing.publications.mavenJava
117126
}

0 commit comments

Comments
 (0)