Skip to content

Commit

Permalink
Issue-802: supply passphrase for export
Browse files Browse the repository at this point in the history
Signed-off-by: l-1squared <[email protected]>
  • Loading branch information
l-1squared committed Nov 24, 2023
1 parent 80bb3f6 commit b6af471
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/mock_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
distribution: 'adopt'
- name: Set up openpgp signing keys
run: |
gpg --version
gpg --quick-gen-key --batch --passphrase "${GPG_PASSWORD}" "${GPG_KEY_ID}"
gpg --list-keys
- name: set an alternate version
Expand All @@ -28,14 +29,8 @@ jobs:
#./gradlew test signJGivenPluginPluginMarkerMavenPublication signMavenPublication signPluginMavenPublication publishToMavenLocal
run: >
./gradlew test publishMavenPublicationToMavenLocal publishMavenPublicationToMavenRepository
-PsigningKey=$(gpg
--batch
--export-secret-key
-a "${GPG_KEY_ID}"
--pinentry-mode=loopback
--passphrase${GPG_PASSWORD}
| sed -e '/^---.*/d' | tr -d '\n'
)
gpg --batch --pinentry-mode=loopback --yes --passphrase "${GPG_PASSWORD}" --export-secret-key "${GPG_KEY_ID}"
-PsigningKey=$(gpg --batch --pinentry-mode=loopback --yes --passphrase "${GPG_PASSWORD}" --export-secret-key "${GPG_KEY_ID}" | sed -e '/^---.*/d' | tr -d '\n')
-PsigningPassword="${GPG_PASSWORD}"
- name: Upload test results html files
continue-on-error: true
Expand Down

0 comments on commit b6af471

Please sign in to comment.