From 36aa0304b3a2ba6211a4b8906d87a0238a280127 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 10 Aug 2025 16:58:57 +0000 Subject: [PATCH 1/3] Initial plan From 0a9441f62a6fb63abc5f193b40f7079182996141 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 10 Aug 2025 17:04:14 +0000 Subject: [PATCH 2/3] Fix GPG signing issue in CI build by skipping GPG and JavaDoc generation Co-authored-by: nathanfunk <3503769+nathanfunk@users.noreply.github.com> --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 588f0bc..26cae8f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -20,7 +20,7 @@ jobs: with: java-version: 17 - name: Build with Maven - run: mvn clean install + run: mvn clean install -Dgpg.skip=true -Dmaven.javadoc.skip=true - name: Archive production artifacts uses: actions/upload-artifact@v4 From 2d18e4a99754bf19928c4679c7c6f8b0a8599417 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 10 Aug 2025 17:38:36 +0000 Subject: [PATCH 3/3] Configure CI to run GPG signing and JavaDoc when secrets are available Co-authored-by: nathanfunk <3503769+nathanfunk@users.noreply.github.com> --- .github/workflows/maven.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 26cae8f..7d1eaa2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,13 +14,31 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 17 - - name: Build with Maven - run: mvn clean install -Dgpg.skip=true -Dmaven.javadoc.skip=true + distribution: 'temurin' + cache: 'maven' + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + if: ${{ secrets.GPG_PRIVATE_KEY != '' }} + - name: Set up JDK 17 (without GPG) + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: 'temurin' + cache: 'maven' + if: ${{ secrets.GPG_PRIVATE_KEY == '' }} + - name: Build with Maven (with GPG) + env: + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + run: mvn clean install + if: ${{ secrets.GPG_PRIVATE_KEY != '' }} + - name: Build with Maven (skip GPG) + run: mvn clean install -Dgpg.skip=true + if: ${{ secrets.GPG_PRIVATE_KEY == '' }} - name: Archive production artifacts uses: actions/upload-artifact@v4