Skip to content

[Release] 发布 2024.01.3 (#48) #14

[Release] 发布 2024.01.3 (#48)

[Release] 发布 2024.01.3 (#48) #14

name: Publish via Maven Central for SNAPSHOT version
on:
push
jobs:
publish-maven-central:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Java and Maven
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Publish to the Maven Central Repository
uses: samuelmeuli/action-maven-publish@v1
with:
maven_profiles: 'deploy'
maven_goals_phases: 'clean deploy'
maven_args: '-DskipTests'
gpg_private_key: ${{ secrets.GPG_SECRET }}
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
nexus_username: ${{ secrets.OSSRH_USERNAME }}
nexus_password: ${{ secrets.OSSRH_TOKEN }}