From 90e2db2837b3607ad14d0f3ab71698477901e16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Berg=20Glasius?= Date: Mon, 30 Jun 2025 15:20:35 +0200 Subject: [PATCH 1/4] Update release.yml Added permission: pull-request: wrrite --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b52989..88e267f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,7 @@ jobs: packages: read # for pre-release workflow contents: write # to commit changes related to the release and publish documentation to gh-pages issues: write # to modify milestones + pull-requests: write steps: - name: "📥 Checkout repository" uses: actions/checkout@v4 @@ -56,4 +57,4 @@ jobs: SOURCE_FOLDER: build/docs VERSION: ${{ env.RELEASE_VERSION }} - name: "⚙️ Run post-release" - uses: apache/grails-github-actions/post-release@asf \ No newline at end of file + uses: apache/grails-github-actions/post-release@asf From 73d18beefa165ed0f4da2b3a3e9fae7e35719bd5 Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Mon, 30 Jun 2025 17:54:57 -0400 Subject: [PATCH 2/4] update release workflow for maven central 2 phased commit --- .github/workflows/release.yml | 52 ++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88e267f..42c0364 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,9 +3,11 @@ on: release: types: [published] jobs: - release: - name: "Publish Release" + stage: + name: "Stage Release" runs-on: ubuntu-24.04 + outputs: + release_version: ${{ steps.release_version.outputs.value }} permissions: packages: read # for pre-release workflow contents: write # to commit changes related to the release and publish documentation to gh-pages @@ -24,9 +26,11 @@ jobs: with: develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: "📝 Store the current release version" + id: release_version run: | echo "Release version: ${GITHUB_REF:11}" echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV + echo "value=${RELEASE_VERSION}" >> $GITHUB_OUTPUT - name: "⚙ Run pre-release" uses: apache/grails-github-actions/pre-release@asf - name: "🔐 Generate key file for artifact signing" @@ -38,15 +42,49 @@ jobs: GRAILS_PUBLISH_RELEASE: 'true' NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }} NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }} - NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }} - NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }} + NEXUS_PUBLISH_URL: 'https://ossrh-staging-api.central.sonatype.com/service/local/' SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} run: > ./gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg publishToSonatype - closeAndReleaseSonatypeStagingRepository + closeSonatypeStagingRepository + publish: + name: "Publish Release" + needs: [ stage ] + environment: release + runs-on: ubuntu-24.04 + permissions: + packages: read # for pre-release workflow + contents: write # to commit changes related to the release and publish documentation to gh-pages + issues: write # to modify milestones + pull-requests: write + steps: + - name: "📥 Checkout repository" + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ref: v${{ needs.stage.outputs.release_version }} + - name: "☕️ Setup JDK" + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: liberica + - name: "🐘 Setup Gradle" + uses: gradle/actions/setup-gradle@v4 + with: + develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + - name: "📤 Release artifacts" + env: + GRAILS_PUBLISH_RELEASE: 'true' + NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }} + NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }} + NEXUS_PUBLISH_URL: 'https://ossrh-staging-api.central.sonatype.com/service/local/' + run: > + ./gradlew + findSonatypeStagingRepository + releaseSonatypeStagingRepository - name: "📖 Generate Documentation" run: ./gradlew docs - name: "📤 Publish Documentation to Github Pages" @@ -55,6 +93,6 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GRADLE_PUBLISH_RELEASE: 'true' SOURCE_FOLDER: build/docs - VERSION: ${{ env.RELEASE_VERSION }} + VERSION: ${{ needs.stage.outputs.release_version }} - name: "⚙️ Run post-release" - uses: apache/grails-github-actions/post-release@asf + uses: apache/grails-github-actions/post-release@asf \ No newline at end of file From 2b4b27c7c2ed66b5b8e39c4235a0f91ed0f37f37 Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Wed, 2 Jul 2025 15:13:52 -0400 Subject: [PATCH 3/4] fix release version --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42c0364..a4e034f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,8 @@ jobs: id: release_version run: | echo "Release version: ${GITHUB_REF:11}" - echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV + export RELEASE_VERSION="${GITHUB_REF:11}" + echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV echo "value=${RELEASE_VERSION}" >> $GITHUB_OUTPUT - name: "⚙ Run pre-release" uses: apache/grails-github-actions/pre-release@asf From a4bb0bb690361464cd467c00b5f5716348a51178 Mon Sep 17 00:00:00 2001 From: jdaugherty Date: Thu, 3 Jul 2025 00:35:39 +0000 Subject: [PATCH 4/4] [skip ci] Release v6.0.0-RC2 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index dd4cd26..4eb09a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -projectVersion=6.0.0-SNAPSHOT +projectVersion=6.0.0-RC2 javaVersion=11 # This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy