Skip to content

0.0.39

0.0.39 #42

Workflow file for this run

name: Release
on:
release:
types: [ created ]
concurrency:
group: release
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
id-token: write
attestations: write
environment: CD
steps:
- name: Set environment for version
run: long="${{ github.ref }}"; version=${long#"refs/tags/v"}; echo "version=${version}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- name: Release maven artifacts
run: ./gradlew -Pversion=$version publish
env:
ORG_GRADLE_PROJECT_GitHubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_GitHubPackagesPassword: ${{ github.token }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.CENTRAL_PASSWORD }}
- name: Write outputs
id: publications
run: ./gradlew :writePublicationsToGitHubOutput -Pversion=$version
- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ steps.publications.outputs.publishedFiles }}