Skip to content

Commit 3a2a649

Browse files
author
yanruhao
committed
修改版本号为1.0.22.1——测试Action
1 parent 867ed7d commit 3a2a649

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/release.yml

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

17+
1718
# 设置 JDK 1.8
1819
- name: Set up JDK 1.8
1920
uses: actions/setup-java@v3
2021
with:
2122
distribution: 'temurin'
2223
java-version: '8'
24+
server-id: central
25+
server-username: SERVER_USERNAME
26+
server-password: SERVER_PASSWORD
27+
gpg-private-key: ${{ secrets.GPG_SECRET }}
28+
gpg-passphrase: GPG_PASSPHRASE
2329

2430
# 获取 Maven 项目版本号
2531
- name: Extract project version
@@ -30,6 +36,14 @@ jobs:
3036
- name: Build with Maven
3137
run: mvn clean package -DskipTests
3238

39+
# 发布到 Apache Maven Central
40+
- name: Publish to Apache Maven Central
41+
run: mvn deploy
42+
env:
43+
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
44+
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
45+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
46+
3347
# 创建 Release(自动附带 Source code (zip/tar.gz))
3448
- name: Create Release
3549
id: create_release

pom.xml

Lines changed: 1 addition & 1 deletion
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.23</version>
9+
<version>1.0.22.1</version>
1010

1111
<name>api</name>
1212
<url>https://github.com/kuaidi100-api/java-demo</url>

0 commit comments

Comments
 (0)