44 types : [ published ]
55permissions : { }
66env :
7- # to prevent throttling of the github api, include the github token in an environment variable since the build will check for it
7+ # To prevent throttling of the GitHub api,
8+ # include the GitHub token in an environment variable
9+ # since the build will check for it
810 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
911 GRAILS_PUBLISH_RELEASE : ' true'
1012 JAVA_DISTRIBUTION : ' liberica'
1921 name : " Stage Jar Files"
2022 permissions :
2123 packages : read # pre-release workflow
22- contents : write # to create release
24+ contents : write # to create a release
2325 issues : write # to modify milestones
2426 runs-on : ubuntu-24.04
2527 steps :
5355 with :
5456 distribution : ${{ env.JAVA_DISTRIBUTION }}
5557 java-version : ${{ env.SDKMANRC_java }}
58+ - name : " Export gradle.properties properties"
59+ uses : apache/grails-github-actions/export-gradle-properties@asf
5660 - name : " 🐘 Setup Gradle"
5761 uses : gradle/actions/setup-gradle@v5
62+ with :
63+ build-scan-publish : ${{ env.ciBuildScanPublish }}
64+ build-scan-terms-of-use-url : ${{ env.ciBuildScanTermsOfUseUrl }}
65+ build-scan-terms-of-use-agree : ${{ env.ciBuildScanTermsOfUseAgree }}
5866 - name : " ⚙️ Run pre-release"
5967 uses : apache/grails-github-actions/pre-release@asf
6068 env :
7179 ./gradlew
7280 -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg
7381 publishMavenPublicationToSonatypeRepository
74- publishPluginMavenPublicationToSonatypeRepository
7582 closeSonatypeStagingRepository
7683 - name : " Generate Build Date file"
7784 run : echo "$SOURCE_DATE_EPOCH" >> build/BUILD_DATE.txt
8592 name : " Make Release Files Available"
8693 environment : release # this step will be delayed until approved
8794 needs : [ publish ]
88- runs-on : ubuntu-latest
95+ runs-on : ubuntu-24.04
8996 permissions :
9097 contents : read
9198 steps :
@@ -108,8 +115,14 @@ jobs:
108115 with :
109116 distribution : ${{ env.JAVA_DISTRIBUTION }}
110117 java-version : ${{ env.SDKMANRC_java }}
118+ - name : " Export gradle.properties properties"
119+ uses : apache/grails-github-actions/export-gradle-properties@asf
111120 - name : " 🐘 Setup Gradle"
112121 uses : gradle/actions/setup-gradle@v5
122+ with :
123+ build-scan-publish : ${{ env.ciBuildScanPublish }}
124+ build-scan-terms-of-use-url : ${{ env.ciBuildScanTermsOfUseUrl }}
125+ build-scan-terms-of-use-agree : ${{ env.ciBuildScanTermsOfUseAgree }}
113126 - name : " 📤 Release staging repository"
114127 env :
115128 NEXUS_PUBLISH_USERNAME : ${{ secrets.MAVEN_USERNAME }}
@@ -124,7 +137,7 @@ jobs:
124137 environment : docs # this step will be delayed until approved
125138 name : " Publish Documentation"
126139 needs : [ publish, release ]
127- runs-on : ubuntu-latest
140+ runs-on : ubuntu-24.04
128141 permissions :
129142 contents : write # required to publish documentation to github pages branches
130143 steps :
@@ -147,8 +160,14 @@ jobs:
147160 with :
148161 distribution : ${{ env.JAVA_DISTRIBUTION }}
149162 java-version : ${{ env.SDKMANRC_java }}
163+ - name : " Export gradle.properties properties"
164+ uses : apache/grails-github-actions/export-gradle-properties@asf
150165 - name : " 🐘 Setup Gradle"
151166 uses : gradle/actions/setup-gradle@v5
167+ with :
168+ build-scan-publish : ${{ env.ciBuildScanPublish }}
169+ build-scan-terms-of-use-url : ${{ env.ciBuildScanTermsOfUseUrl }}
170+ build-scan-terms-of-use-agree : ${{ env.ciBuildScanTermsOfUseAgree }}
152171 - name : " 🔨 Build Documentation"
153172 run : ./gradlew docs
154173 - name : " 🚀 Publish to Github Pages"
@@ -162,32 +181,11 @@ jobs:
162181 name : " To Next Version"
163182 environment : close # this step will be delayed until approved
164183 needs : [ publish, docs, release ]
165- runs-on : ubuntu-latest
184+ runs-on : ubuntu-24.04
166185 permissions :
167186 contents : write # required for gradle.properties revert
168187 issues : write # required for milestone closing
169188 pull-requests : write # to create the PR that will increment the version
170189 steps :
171- - name : " 📝 Establish release version"
172- run : echo "VERSION=${TAG#v}" >> "$GITHUB_ENV"
173- - name : " 📥 Checkout repository"
174- uses : actions/checkout@v6
175- with :
176- token : ${{ secrets.GITHUB_TOKEN }}
177- ref : ${{ env.TAG }}
178- - name : " Export .sdkmanrc properties"
179- uses : apache/grails-github-actions/export-gradle-properties@asf
180- with :
181- file : " .sdkmanrc"
182- prefix : " SDKMANRC_"
183- - name : " Determine Java Version"
184- run : echo "SDKMANRC_java=${{ env.SDKMANRC_java }}" | sed 's/-.*//' >> $GITHUB_ENV
185- - name : " ☕️ Setup JDK"
186- uses : actions/setup-java@v5
187- with :
188- distribution : ${{ env.JAVA_DISTRIBUTION }}
189- java-version : ${{ env.SDKMANRC_java }}
190- - name : " 🐘 Setup Gradle"
191- uses : gradle/actions/setup-gradle@v5
192190 - name : " ⚙️ Run post-release"
193191 uses : apache/grails-github-actions/post-release@asf
0 commit comments