File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,12 @@ jobs:
2828 server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
2929 server-username : MAVEN_USERNAME
3030 server-password : MAVEN_PASSWORD
31- # TODO:
32- # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
33- # gpg-passphrase: MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
31+ gpg-private-key : ${{ secrets.SIGN_KEY }} # has to be read directly from secrets
32+ gpg-passphrase : SIGN_KEY_PASS # default name used by maven-gpg-plugin
3433 - name : Publish package
3534# run: mvn --batch-mode deploy
3635 run : mvn -V --errors --show-version --batch-mode --no-transfer-progress -Ddoclint=all deploy
3736 env :
3837 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
3938 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
40- # MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
39+ MAVEN_GPG_PASSPHRASE : ${{ secrets.SIGN_KEY_PASS }}
Original file line number Diff line number Diff line change 2828 -->
2929 <groupId >io.github.homebeaver</groupId >
3030 <artifactId >isoiec7064</artifactId >
31- <version >1.10.1 </version >
31+ <version >1.10.2 </version >
3232 <packaging >jar</packaging >
3333
3434 <name >IsoIec7064</name >
132132 </executions >
133133 </plugin >
134134
135- <!-- see https://maven.apache.org/plugins/maven-gpg-plugin/usage.html
135+ <!-- see https://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
136136 <plugin >
137137 <groupId >org.apache.maven.plugins</groupId >
138138 <artifactId >maven-gpg-plugin</artifactId >
139139 <version >3.2.7</version >
140140 <executions >
141141 <execution >
142- <id>sign-artifacts</id>
143142 <phase >verify</phase >
144143 <goals >
145144 <goal >sign</goal >
146145 </goals >
147- <configuration>
148- <keyname>sign-key-id</keyname>
149- <passphraseServerId>sign-key-id</passphraseServerId>
150- </configuration>
151146 </execution >
152147 </executions >
153148 </plugin >
154- use simplify4u : -->
149+ <!-- or use simplify4u : https://www.simplify4u.org/sign-maven-plugin/
150+ Key configuration can be provided by environment variables: SIGN_KEY, SIGN_KEY_ID, SIGN_KEY_PASS
155151 <plugin>
156152 <groupId>org.simplify4u.plugins</groupId>
157153 <artifactId>sign-maven-plugin</artifactId>
@@ -161,13 +157,10 @@ use simplify4u : -->
161157 <goals>
162158 <goal>sign</goal>
163159 </goals>
164- <configuration >
165- <!-- the same id as in settings.xml -->
166- <serverId >sign-key-id</serverId >
167- </configuration >
168160 </execution>
169161 </executions>
170162 </plugin>
163+ -->
171164
172165 <plugin >
173166 <groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments