Skip to content

v1.00 fix workflow

v1.00 fix workflow #6

Workflow file for this run

name: Maven Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v3
- name: ☕ Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 🔐 Import GPG key
run: |
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: 🔨 Build with Maven (GPG Enabled, single-threaded, extended timeout)
run: |
mvn -B clean install \
-Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" \
-Dgpg.pinentry.mode=loopback \
-Dsurefire.parallel=none \
-Dsurefire.timeout=500