Skip to content

Commit

Permalink
feat: make sure gpg entry expects passphrase in environment variable (#…
Browse files Browse the repository at this point in the history
…213)

* Make sure the maven build also knows about the github token environment variable
  • Loading branch information
Christopher Kolstad authored Sep 5, 2023
1 parent 6c04e90 commit 00442ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release_to_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Release
run: mvn -B -DreleaseVersion=${{ inputs.version}} release:prepare release:perform
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ target

.DS_Store
**/bin/
.vim/
15 changes: 10 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@

<scm>
<url>https://github.com/Unleash/unleash-client-java</url>
<connection>scm:git:git@github.com:Unleash/unleash-client-java.git</connection>
<developerConnection>scm:git:git@github.com:Unleash/unleash-client-java.git</developerConnection>
<tag>unleash-client-java-8.3.1</tag>
<connection>scm:git:https://github.com/Unleash/unleash-client-java.git</connection>
<developerConnection>scm:git:https://github.com/Unleash/unleash-client-java.git</developerConnection>
</scm>

<dependencies>
Expand Down Expand Up @@ -464,7 +463,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -473,7 +472,13 @@
<goal>sign</goal>
</goals>
</execution>
</executions>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>

Expand Down

0 comments on commit 00442ef

Please sign in to comment.