Release 2.10.2.0 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- '*' | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
jobs: | |
StageMC: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Grab tag name | |
uses: olegtarasov/get-tag@v2.1.2 | |
id: tagName | |
- name: Setup Java | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Upload to Sonatype | |
run: | | |
./gradlew publishMavenJavaPublicationToSonatypeStagingRepository \ | |
-Psign=true \ | |
-PreleaseVersion="${{ steps.tagName.outputs.tag }}" \ | |
-PsigningKey="${{ secrets.SIGNING_KEY }}" \ | |
-PsigningPassword="${{ secrets.SIGNING_PASSWORD }}" \ | |
-PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \ | |
-PnexusPassword="${{ secrets.NEXUS_PASSWORD }}" | |
ReleaseMC: | |
needs: [StageMC] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Java | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Release to Maven Central | |
run: | | |
./gradlew closeAndReleaseRepository \ | |
-PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \ | |
-PnexusPassword="${{ secrets.NEXUS_PASSWORD }}" | |