Skip to content

Commit 3c97bc8

Browse files
fix: ci
1 parent c052002 commit 3c97bc8

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
server-id: central
2121
server-username: CENTRAL_TOKEN_USERNAME
2222
server-password: CENTRAL_TOKEN_PASSWORD
23-
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
23+
gpg-private-key: GPG_SIGNING_KEY
2424
gpg-passphrase: GPG_SIGNING_KEY_PASSWORD
2525
- name: Build with Maven
2626
run: mvn -B package --file pom.xml
@@ -29,4 +29,5 @@ jobs:
2929
env:
3030
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
3131
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
32+
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
3233
GPG_SIGNING_KEY_PASSWORD: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}

pom.xml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
<sortPom>
130130
<expandEmptyElements>false</expandEmptyElements>
131131
<sortDependencies>scope,groupId,artifactId</sortDependencies>
132-
<sortPlugins>groupId,artifactId</sortPlugins>
133132
</sortPom>
134133
</pom>
135134
</configuration>
@@ -156,26 +155,6 @@
156155
<id>release</id>
157156
<build>
158157
<plugins>
159-
<plugin>
160-
<groupId>org.apache.maven.plugins</groupId>
161-
<artifactId>maven-gpg-plugin</artifactId>
162-
<version>${maven-gpg-plugin.version}</version>
163-
<configuration>
164-
<gpgArguments>
165-
<arg>--pinentry-mode</arg>
166-
<arg>loopback</arg>
167-
</gpgArguments>
168-
</configuration>
169-
<executions>
170-
<execution>
171-
<id>sign-artifacts</id>
172-
<goals>
173-
<goal>sign</goal>
174-
</goals>
175-
<phase>verify</phase>
176-
</execution>
177-
</executions>
178-
</plugin>
179158
<plugin>
180159
<groupId>org.apache.maven.plugins</groupId>
181160
<artifactId>maven-javadoc-plugin</artifactId>
@@ -209,6 +188,26 @@
209188
</execution>
210189
</executions>
211190
</plugin>
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-gpg-plugin</artifactId>
194+
<version>${maven-gpg-plugin.version}</version>
195+
<configuration>
196+
<gpgArguments>
197+
<arg>--pinentry-mode</arg>
198+
<arg>loopback</arg>
199+
</gpgArguments>
200+
</configuration>
201+
<executions>
202+
<execution>
203+
<id>sign-artifacts</id>
204+
<goals>
205+
<goal>sign</goal>
206+
</goals>
207+
<phase>verify</phase>
208+
</execution>
209+
</executions>
210+
</plugin>
212211
<plugin>
213212
<groupId>org.sonatype.central</groupId>
214213
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)