Skip to content

Commit

Permalink
Merge pull request #438 from grails/matrei/merge-6.0.x-into-6.1.x
Browse files Browse the repository at this point in the history
Merge 6.0.x into 6.1.x
  • Loading branch information
matrei authored Dec 5, 2024
2 parents a42f039 + 6853087 commit 433aa7d
Show file tree
Hide file tree
Showing 15 changed files with 576 additions and 437 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/mavenCentral.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Maven Central Sync
name: "Maven Central Sync"
on:
workflow_dispatch:
inputs:
Expand All @@ -7,31 +7,36 @@ on:
required: true
jobs:
build:
name: Maven Central Sync
name: "Maven Central Sync"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "📥 Checkout repository"
uses: actions/checkout@v4
with:
ref: v${{ github.event.inputs.release_version }}
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/[email protected]
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
distribution: 'adopt'
distribution: 'liberica'
java-version: '11'
- name: Generate secring file
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: "🔐 Generate secring file"
env:
SECRING_FILE: ${{ secrets.SECRING_FILE }}
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
- name: Publish to Sonatype OSSRH
uses: gradle/gradle-build-action@v2
- name: "📤 Publish to Sonatype OSSRH"
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
with:
arguments: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg publishToSonatype closeAndReleaseSonatypeStagingRepository
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
run: >
./gradlew
-Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
publishToSonatype
closeAndReleaseSonatypeStagingRepository
440 changes: 249 additions & 191 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

23 changes: 13 additions & 10 deletions .github/workflows/sdkman.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release to SDKMan
name: "Release to SDKMan"
on:
workflow_dispatch:
inputs:
Expand All @@ -11,24 +11,27 @@ jobs:
permissions:
contents: read
steps:
- name: Checkout repository
- name: "📥 Checkout repository"
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
ref: v${{ github.event.inputs.version }}
- name: Set up JDK
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
- name: Grails SDK Minor Release
uses: gradle/gradle-build-action@v2
distribution: 'liberica'
java-version: '17'
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
arguments: sdkMinorRelease
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: "🚀 Grails SDK Minor Release"
run: ./gradlew sdkMinorRelease
env:
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GVM_SDKVENDOR_KEY: ${{ secrets.GVM_SDKVENDOR_KEY }}
GVM_SDKVENDOR_TOKEN: ${{ secrets.GVM_SDKVENDOR_TOKEN }}
- name: Set output
- name: "Set output"
id: set_output
run: |
echo ::set-output name=release_version::$(cat $GITHUB_OUTPUT)
Expand Down
Loading

0 comments on commit 433aa7d

Please sign in to comment.