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 :
2830 - name : " Output Agent IP" # in the event RAO blocks this agent, this can be used to debug it
2931 run : curl -s https://api.ipify.org
3032 - name : " 📥 Checkout repository"
31- uses : actions/checkout@v4
33+ uses : actions/checkout@v6
3234 with :
3335 token : ${{ secrets.GITHUB_TOKEN }}
3436 ref : ${{ env.TAG }}
@@ -49,12 +51,18 @@ jobs:
4951 - name : " Determine Java Version"
5052 run : echo "SDKMANRC_java=${{ env.SDKMANRC_java }}" | sed 's/-.*//' >> $GITHUB_ENV
5153 - name : " ☕️ Setup JDK"
52- uses : actions/setup-java@v4
54+ uses : actions/setup-java@v5
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"
57- uses : gradle/actions/setup-gradle@v4
61+ 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
9299 - name : " 📝 Establish release version"
93100 run : echo "VERSION=${TAG#v}" >> "$GITHUB_ENV"
94101 - name : " 📥 Checkout repository"
95- uses : actions/checkout@v4
102+ uses : actions/checkout@v6
96103 with :
97104 token : ${{ secrets.GITHUB_TOKEN }}
98105 ref : ${{ env.TAG }}
@@ -104,12 +111,18 @@ jobs:
104111 - name : " Determine Java Version"
105112 run : echo "SDKMANRC_java=${{ env.SDKMANRC_java }}" | sed 's/-.*//' >> $GITHUB_ENV
106113 - name : " ☕️ Setup JDK"
107- uses : actions/setup-java@v4
114+ uses : actions/setup-java@v5
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"
112- uses : gradle/actions/setup-gradle@v4
121+ 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 }}
@@ -131,7 +144,7 @@ jobs:
131144 - name : " 📝 Establish release version"
132145 run : echo "VERSION=${TAG#v}" >> "$GITHUB_ENV"
133146 - name : " 📥 Checkout repository"
134- uses : actions/checkout@v4
147+ uses : actions/checkout@v6
135148 with :
136149 token : ${{ secrets.GITHUB_TOKEN }}
137150 ref : ${{ env.TAG }}
@@ -143,12 +156,18 @@ jobs:
143156 - name : " Determine Java Version"
144157 run : echo "SDKMANRC_java=${{ env.SDKMANRC_java }}" | sed 's/-.*//' >> $GITHUB_ENV
145158 - name : " ☕️ Setup JDK"
146- uses : actions/setup-java@v4
159+ uses : actions/setup-java@v5
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"
151- uses : gradle/actions/setup-gradle@v4
166+ 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"
@@ -168,26 +187,5 @@ jobs:
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@v4
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@v4
187- with :
188- distribution : ${{ env.JAVA_DISTRIBUTION }}
189- java-version : ${{ env.SDKMANRC_java }}
190- - name : " 🐘 Setup Gradle"
191- uses : gradle/actions/setup-gradle@v4
192190 - name : " ⚙️ Run post-release"
193191 uses : apache/grails-github-actions/post-release@asf
0 commit comments