Skip to content

Release 2.10.2.0

Release 2.10.2.0 #40

Workflow file for this run

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 }}"