Skip to content

Commit

Permalink
build: update gpg plugin and its configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cleydyr committed Sep 22, 2024
1 parent 28457eb commit bf7dfbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '11'
cache: 'maven'
distribution: 'adopt'
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}


- name: Configure Maven settings
run: |
Expand All @@ -30,8 +30,11 @@ jobs:
run: mvn --batch-mode --update-snapshots clean test spotless:check ossindex:audit

- name: Deploy to Maven Central
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY }}
MAVEN_GPG_KEY: ${{ secrets.GPG_PASSPHRASE }}
if: success()
run: mvn deploy -P release
run: MAVEN_GPG_PASSPHRASE=$MAVEN_GPG_PASSPHRASE MAVEN_GPG_KEY=${MAVEN_GPG_KEY} mvn deploy -DskipTests

- name: Create GitHub Release
if: success()
Expand Down
7 changes: 2 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>3.2.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -183,10 +183,7 @@
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
<signer>bc</signer>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit bf7dfbb

Please sign in to comment.