Skip to content

Commit 0cb3d04

Browse files
committed
Specify keyring file
1 parent 046612a commit 0cb3d04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ jobs:
167167
run: |
168168
cat <(echo -e "${{ secrets.SONATYPE_GPG_KEY }}") | gpg --batch --import
169169
gpg --list-secret-keys --keyid-format LONG
170+
gpg --export-secret-keys > ~/.gnupg/secring.gpg
170171
171172
- name: Publish libraries
172173
run: ./gradlew --no-configuration-cache publish
@@ -175,6 +176,7 @@ jobs:
175176
CAPLIN_USERNAME: ${{ secrets.CAPLIN_USERNAME }}
176177
CAPLIN_PASSWORD: ${{ secrets.CAPLIN_PASSWORD }}
177178
ORG_GRADLE_PROJECT_signing.keyId: "BD2A1230"
179+
ORG_GRADLE_PROJECT_signing.secretKeyRingFile: "~/.gnupg/secring.gpg"
178180
ORG_GRADLE_PROJECT_signing.password: ${{ secrets.SONATYPE_GPG_PASSWORD }}
179181
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
180182
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)