Skip to content

Commit c1b2308

Browse files
[CS-36689] GPG signing test
1 parent b1862b2 commit c1b2308

File tree

2 files changed

+16
-34
lines changed

2 files changed

+16
-34
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
distribution: 'adopt'
1818
server-id: ossrh
1919
server-username: ${{ secrets.OSSRH_USERNAME }}
20-
server-password: ${{ secrets.OSSRH_TOKEN }}
20+
server-password: ${{ secrets.OSSRH_PASSWORD }}
2121

2222
- name: Configure settings.xml
2323
run: |
@@ -28,26 +28,13 @@ jobs:
2828
run: mvn --batch-mode deploy
2929
env:
3030
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
31+
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3232
- name: Set up Java for publishing to GitHub Packages
3333
uses: actions/setup-java@v3
3434
with:
3535
java-version: '11'
3636
distribution: 'adopt'
3737

38-
# - name: Import GPG private key
39-
# run: |
40-
# echo "$GPG_PRIVATE_KEY" > private.key
41-
# gpg --batch --import private.key
42-
43-
# - name: Maven deploy with GPG signing
44-
# run: |
45-
# mvn clean deploy -P release
46-
# env:
47-
# DEPLOY_USERNAME: ${{ secrets.OSSRH_USERNAME }}
48-
# DEPLOY_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
49-
# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
50-
5138
- name: Publish to GitHub Packages
5239
run: mvn --batch-mode deploy
5340
env:

pom.xml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,20 @@
235235
<version>${maven-site-plugin.version}</version>
236236
</plugin>
237237

238-
<!-- <plugin>-->
239-
<!-- <groupId>org.apache.maven.plugins</groupId>-->
240-
<!-- <artifactId>maven-gpg-plugin</artifactId>-->
241-
<!-- <version>${maven-gpg-plugin.version}</version>-->
242-
<!-- <executions>-->
243-
<!-- <execution>-->
244-
<!-- <id>sign-artifacts</id>-->
245-
<!-- <phase>verify</phase>-->
246-
<!-- <goals>-->
247-
<!-- <goal>sign</goal>-->
248-
<!-- </goals>-->
249-
<!-- </execution>-->
250-
<!-- </executions>-->
251-
<!-- </plugin>-->
238+
<!-- <plugin>-->
239+
<!-- <groupId>org.apache.maven.plugins</groupId>-->
240+
<!-- <artifactId>maven-gpg-plugin</artifactId>-->
241+
<!-- <version>${maven-gpg-plugin.version}</version>-->
242+
<!-- <executions>-->
243+
<!-- <execution>-->
244+
<!-- <id>sign-artifacts</id>-->
245+
<!-- <phase>verify</phase>-->
246+
<!-- <goals>-->
247+
<!-- <goal>sign</goal>-->
248+
<!-- </goals>-->
249+
<!-- </execution>-->
250+
<!-- </executions>-->
251+
<!-- </plugin>-->
252252

253253
<plugin>
254254
<groupId>org.apache.maven.plugins</groupId>
@@ -261,11 +261,6 @@
261261
<showDeprecation>true</showDeprecation>
262262
<showWarnings>true</showWarnings>
263263
<compilerArgs>
264-
<!-- We turn off:
265-
- `serial` because we don't use Java serialization
266-
(and all it does is stupidly complain about the serialVersionUID)
267-
- `processing` because it complains about every annotation
268-
-->
269264
<arg>-Xlint:all,-serial,-processing</arg>
270265
</compilerArgs>
271266
</configuration>

0 commit comments

Comments
 (0)