Issue-802: supply passphrase for export #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Mock-release JGiven" | |
on: [pull_request, push] | |
jobs: | |
mock-release-jgiven: | |
name: Mock-release JGiven | |
runs-on: ubuntu-latest | |
env: | |
SONATYPE_PASSWORD: 'notARealPassword' | |
SONATYPE_USERNAME: 'notARealUsername' | |
GPG_PASSWORD: 'espalhando' | |
GPG_KEY_ID: '[email protected]' | |
VERSION: '0.0.1-TEST' | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 11 | |
uses: actions/[email protected] | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Set up openpgp signing keys | |
run: | | |
gpg --quick-gen-key --batch --passphrase "${GPG_PASSWORD}" "${GPG_KEY_ID}" | |
gpg --list-keys | |
- name: set an alternate version | |
run: "source scripts/source_files/helper_functions.sh && updateAllVersionInformation ${VERSION}" | |
- name: Attempt mock release | |
#./gradlew test signJGivenPluginPluginMarkerMavenPublication signMavenPublication signPluginMavenPublication publishToMavenLocal | |
run: > | |
./gradlew test publishMavenPublicationToMavenLocal publishMavenPublicationToMavenRepository | |
-PsigningKey=$(gpg --batch --export-secret-key "${GPG_KEY_ID}" --pinentry-mode=loopback --passphrase="${GPG_PASSWORD}" --yes | sed -e '/^---.*/d' | tr -d '\n') | |
-PsigningPassword="${GPG_PASSWORD}" | |
- name: Upload test results html files | |
continue-on-error: true | |
if: ${{failure()}} | |
uses: actions/[email protected] | |
with: | |
name: test-report.zip | |
path: /home/runner/work/JGiven/JGiven/*/build/reports/tests | |
if-no-files-found: ignore | |