Skip to content

Commit 7cd9b62

Browse files
author
yanruhao
committed
v1.0.22.6——回滚修改
1 parent 80cc35d commit 7cd9b62

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,12 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v3
1616

17-
1817
# 设置 JDK 1.8
1918
- name: Set up JDK 1.8
2019
uses: actions/setup-java@v3
2120
with:
2221
distribution: 'temurin'
2322
java-version: '8'
24-
server-id: central
25-
server-username: ${{ secrets.SERVER_USERNAME }}
26-
server-password: ${{ secrets.SERVER_PASSWORD }}
27-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
28-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
2923

3024
# 获取 Maven 项目版本号
3125
- name: Extract project version
@@ -36,12 +30,6 @@ jobs:
3630
- name: Build with Maven
3731
run: mvn clean package -DskipTests
3832

39-
# 发布到 Apache Maven Central
40-
- name: Publish to Apache Maven Central
41-
run: mvn deploy -P release -Dmaven.test.skip=true -X
42-
env:
43-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
44-
4533
# 创建 Release(自动附带 Source code (zip/tar.gz))
4634
- name: Create Release
4735
id: create_release

pom.xml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.kuaidi100-api</groupId>
88
<artifactId>sdk</artifactId>
9-
<version>1.0.22.3</version>
9+
<version>1.0.22.6</version>
1010

1111
<name>api</name>
1212
<url>https://github.com/kuaidi100-api/java-demo</url>
@@ -165,7 +165,10 @@
165165
<plugin>
166166
<groupId>org.apache.maven.plugins</groupId>
167167
<artifactId>maven-gpg-plugin</artifactId>
168-
<version>3.2.4</version>
168+
<version>1.1</version>
169+
<configuration>
170+
<passphrase></passphrase>
171+
</configuration>
169172
<executions>
170173
<execution>
171174
<id>sign-artifacts</id>
@@ -175,16 +178,6 @@
175178
</goals>
176179
</execution>
177180
</executions>
178-
<configuration>
179-
<useAgent>false</useAgent>
180-
<gpgArguments>
181-
<arg>--batch</arg>
182-
<arg>--yes</arg>
183-
<arg>--pinentry-mode</arg>
184-
<arg>loopback</arg>
185-
</gpgArguments>
186-
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
187-
</configuration>
188181
</plugin>
189182
<plugin>
190183
<groupId>org.sonatype.central</groupId>

0 commit comments

Comments
 (0)