Skip to content

Commit

Permalink
adds configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 10, 2024
1 parent 8316aeb commit 9ae8520
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,26 @@ jobs:
java-version: '11'
cache: maven

# - name: Configure GPG
# run: |
# mkdir -p ~/.gnupg
# chmod 700 ~/.gnupg
# echo "use-agent" > ~/.gnupg/gpg.conf
# echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
# echo "default-cache-ttl 600" >> ~/.gnupg/gpg-agent.conf
# echo "max-cache-ttl 7200" >> ~/.gnupg/gpg-agent.conf
# gpgconf --reload gpg-agent
- name: Configure GPG
run: |
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
echo "default-cache-ttl 600" >> ~/.gnupg/gpg-agent.conf
echo "max-cache-ttl 7200" >> ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
gpg --list-secret-keys
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY}}

- name: Build and test post generation
run: |
export GPG_TTY=$(tty)
mvn clean verify -DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -X
mvn clean verify -DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
working-directory: Xero-Java
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

0 comments on commit 9ae8520

Please sign in to comment.