Skip to content

Commit

Permalink
Passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
skyforce77 committed Nov 9, 2023
1 parent c2846ba commit 5bd4f8e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/jakarta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,17 @@ jobs:

- name: Test
run: |
echo "$ADMIN_AT_AUTHLETE_SEC" > test.key
gpg --batch --import-options import-show --import test.key
echo "${{ secrets.ADMIN_AT_AUTHLETE_SEC }}" > ~/test.key
gpg --batch --import-options import-show --passphrase "${{ secrets.ADMIN_AT_AUTHLETE_SEC_PASS }}" --import ~/test.key || true
gpg --list-secret-keys
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
# gpg-private-key: |
# ${{ secrets.ADMIN_AT_AUTHLETE_SEC }}
# gpg-private-key: ${{ secrets.ADMIN_AT_AUTHLETE_SEC }}
# gpg-passphrase: ${{ secrets.ADMIN_AT_AUTHLETE_SEC_PASS }}

- name: Clone jakarta repository
env:
Expand All @@ -109,4 +110,6 @@ jobs:
cd authlete-java-jakarta
- name: Prepare artifacts
run: mvn -P external release:prepare
run: GPG_TTY=$(tty) mvn -P external release:prepare
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.ADMIN_AT_AUTHLETE_SEC_PASS }}
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@
</goals>
<configuration>
<keyname>E834481D</keyname>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 5bd4f8e

Please sign in to comment.