Skip to content

Commit 05d6c95

Browse files
committed
Sign builds even when not releasing
This is intended to avoid scenarios where signing-issues only pop up when performing a release.
1 parent afd4daf commit 05d6c95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/maven-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
java-version: ${{ matrix.java }}
2222
distribution: ${{ matrix.distribution }}
2323
cache: maven
24+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
25+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
2426
- name: Build with Maven
25-
run: mvn --batch-mode --update-snapshots verify
27+
run: mvn --batch-mode --update-snapshots verify -Prelease
28+
env:
29+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
2630
- name: Publish Test Report
2731
uses: mikepenz/action-junit-report@v5
2832
if: ${{ matrix.java == 8 && (success() || failure()) }} # always run even if the previous step fails

0 commit comments

Comments
 (0)