Skip to content

Commit b671b4e

Browse files
committed
fix:修正pom
1 parent 95012d1 commit b671b4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
java-version: 17
2424
distribution: 'temurin'
2525
cache: maven
26-
server-id: sonatype-nexus-staging
27-
server-username: ${{ secrets.OSSRH_USER }}
28-
server-password: ${{ secrets.OSSRH_PASSWORD }}
29-
gpg-passphrase: ${{ secrets.GPG_PASSWORD }}
3026
# 3. 发布到Maven中央仓库
3127
- name: Publish to Maven Central Repo
3228
# 这里用到了其他人写的action脚本,详细可以去看他的文档。
@@ -36,3 +32,5 @@ jobs:
3632
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
3733
nexus_username: ${{ secrets.OSSRH_USER }}
3834
nexus_password: ${{ secrets.OSSRH_PASSWORD }}
35+
server_id: ossrh
36+
maven_goals_phases: clean deploy -DskipTests -Prelease

0 commit comments

Comments
 (0)