Release 2.11.1.0 #42
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/[email protected] | |
- name: Grab tag name | |
uses: olegtarasov/[email protected] | |
id: tagName | |
- name: Setup Java | |
uses: actions/[email protected] | |
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/[email protected] | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Release to Maven Central | |
run: | | |
./gradlew closeAndReleaseRepository \ | |
-PnexusUsername="${{ secrets.NEXUS_USERNAME }}" \ | |
-PnexusPassword="${{ secrets.NEXUS_PASSWORD }}" | |