Skip to content

use direct key instead of test one #8

use direct key instead of test one

use direct key instead of test one #8

name: Java Build, Lint and Test
on:
push:
jobs:
build-test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Xero-Java repo
uses: actions/checkout@v4
with:
repository: XeroAPI/Xero-Java
path: Xero-Java
- name: Set up JDK environment
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: maven
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" > /tmp/private-key.asc
gpg --batch --import /tmp/private-key.asc
gpg --list-secret-keys
env:
GPG_TTY: $(tty)
- name: Build and test post generation
run: |
cd Xero-Java
export GPG_TTY=$(tty)
mvn clean verify -DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
env:
GPG_TTY: $(tty)