Manual Release Build #14
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
name: Manual Release Build | |
# Release builds | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'the version to be released' | |
required: true | |
jobs: | |
buildAndPublish: | |
runs-on: ubuntu-latest | |
env: | |
MAVEN_CENTRAL_PGP_KEY: ${{ secrets.MAVEN_CENTRAL_PGP_KEY }} | |
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }} | |
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
RELEASE_VERSION: ${{ github.event.inputs.version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'corretto' | |
- name: build test and publish | |
run: ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace |