Skip to content

v3.0.0 (#160)

v3.0.0 (#160) #22

Workflow file for this run

name: publish
on:
push:
tags:
- 'v*'
jobs:
check:
uses: ./.github/workflows/check.yml
publish:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Build sourcesJar and javadocJar
uses: gradle/gradle-build-action@v2
with:
arguments: sourcesJar javadocJar
- name: Publish to MavenCentral
uses: gradle/gradle-build-action@v2
with:
arguments: publishMavenPublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.MAVEN_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
github-release:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract release notes
id: release_notes
uses: ffurrer2/extract-release-notes@v1
- name: Create release
uses: ncipollo/release-action@v1
with:
body: ${{ steps.release_notes.outputs.release_notes }}
discussionCategory: Announcements