Skip to content

Commit 262cdaf

Browse files
authored
[开发] release修改
[开发] release修改
2 parents 3bc925b + 92ec38a commit 262cdaf

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/PushSDK.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
-DskipTests=true \
7878
-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
7979
-Dgpg.pinentry-mode=loopback \
80+
-DaltDeploymentRepository="ossrh::default::https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/" \
8081
clean deploy
8182
env:
8283
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

pom.xml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@
178178
</executions>
179179
</plugin>
180180

181+
<!-- central-publishing-maven-plugin 暂时移除,使用 maven-deploy-plugin 直传 -->
182+
<!--
181183
<plugin>
182184
<groupId>org.sonatype.central</groupId>
183185
<artifactId>central-publishing-maven-plugin</artifactId>
@@ -189,27 +191,13 @@
189191
<autoPublish>true</autoPublish>
190192
</configuration>
191193
</plugin>
194+
-->
192195

193-
<!-- maven-deploy-plugin 按“PUT 上传”即可,端点在 distributionManagement 中已切换 -->
194196
<plugin>
195197
<groupId>org.apache.maven.plugins</groupId>
196198
<artifactId>maven-deploy-plugin</artifactId>
197199
<version>3.1.2</version>
198-
<executions>
199-
<execution>
200-
<id>default-deploy</id>
201-
<phase>deploy</phase>
202-
<goals>
203-
<goal>deploy</goal>
204-
</goals>
205-
<configuration>
206-
<skip>true</skip>
207-
</configuration>
208-
</execution>
209-
</executions>
210-
<configuration>
211-
<skip>true</skip>
212-
</configuration>
200+
<!-- 恢复默认配置 -->
213201
</plugin>
214202
</plugins>
215203
</build>

0 commit comments

Comments
 (0)