Browse Source

测试自动发布

pull/2817/head
Jiaju Zhuang 2 years ago
parent
commit
68d1ee0e01
  1. 22
      .github/workflows/release.yml

22
.github/workflows/release.yml

@ -17,8 +17,8 @@
name: Publish package to the Maven Central Repository name: Publish package to the Maven Central Repository
on: on:
push: release:
tags: [ "*" ] types: [created]
jobs: jobs:
publish: publish:
@ -31,15 +31,11 @@ jobs:
with: with:
java-version: 8 java-version: 8
distribution: 'adopt' distribution: 'adopt'
server-id: sonatype-nexus-staging server-id: ossrh
server-username: ${{ secrets.NEXUS_USERNAME }} server-username: MAVEN_USERNAME
server-password: ${{ secrets.NEXUS_PASSWORD }} server-password: MAVEN_PASSWORD
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Release Maven package - name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1 run: mvn --batch-mode deploy
with: env:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
maven_args: -Dmaven.test.skip=false -Dmaven.javadoc.skip=false -Dgpg.skip=false
Loading…
Cancel
Save