@@ -13,16 +13,23 @@ jobs:
1313 artifacts-sha256 : ${{ steps.hash.outputs.artifacts-sha256 }} # Computed hashes for build artifacts.
1414 runs-on : ubuntu-latest
1515 steps :
16+ - name : Remove system JDKs
17+ run : |
18+ sudo rm -rf /usr/lib/jvm/*
19+ unset JAVA_HOME
20+ export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:)
1621 - name : Checkout repository
17- uses : actions/checkout@v4
22+ uses : actions/checkout@v6
1823 with :
1924 token : ${{ secrets.GH_TOKEN }}
20- - uses : gradle/actions/wrapper-validation@v4
25+ - uses : gradle/actions/wrapper-validation@v5
2126 - name : Set up JDK
22- uses : actions/setup-java@v4
27+ uses : actions/setup-java@v5
2328 with :
2429 distribution : ' temurin'
25- java-version : ' 21'
30+ java-version : |
31+ 21
32+ 25
2633 - name : Set the current release version
2734 id : release_version
2835 run : echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
@@ -66,13 +73,13 @@ jobs:
6673 # Store the hash in a file, which is uploaded as a workflow artifact.
6774 sha256sum $ARTIFACTS | base64 -w0 > artifacts-sha256
6875 - name : Upload build artifacts
69- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6 .0
76+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0 .0
7077 with :
7178 name : gradle-build-outputs
7279 path : build/repo/${{ steps.publish.outputs.group }}/*/${{ steps.publish.outputs.version }}/*
7380 retention-days : 5
7481 - name : Upload artifacts-sha256
75- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6 .0
82+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0 .0
7683 with :
7784 name : artifacts-sha256
7885 path : artifacts-sha256
@@ -87,11 +94,14 @@ jobs:
8794 GH_USERNAME : ${{ secrets.GH_USERNAME }}
8895 - name : Export Gradle Properties
8996 uses : micronaut-projects/github-actions/export-gradle-properties@master
97+ - name : LATEST_TAG
98+ run : |
99+ echo "LATEST_TAG=$(curl -s -L -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.tag_name')" >> $GITHUB_ENV
90100 - name : Publish to Github Pages
91101 if : success()
92102 uses : micronaut-projects/github-pages-deploy-action@master
93103 env :
94- BETA : ${{ !(github.event.release.target_commitish == github.event.repository.default_branch) || contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }}
104+ BETA : ${{ !(github.event.release.tag_name == env.LATEST_TAG) || github.event.release.draft || github.event.release.prerelease || contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }}
95105 GH_TOKEN : ${{ secrets.GH_TOKEN }}
96106 BRANCH : gh-pages
97107 FOLDER : build/docs
@@ -115,7 +125,7 @@ jobs:
115125 artifacts-sha256 : ${{ steps.set-hash.outputs.artifacts-sha256 }}
116126 steps :
117127 - name : Download artifacts-sha256
118- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3 .0
128+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0 .0
119129 with :
120130 name : artifacts-sha256
121131 # The SLSA provenance generator expects the hash digest of artifacts to be passed as a job
@@ -146,9 +156,9 @@ jobs:
146156 if : startsWith(github.ref, 'refs/tags/')
147157 steps :
148158 - name : Checkout repository
149- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
159+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
150160 - name : Download artifacts
151- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3 .0
161+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0 .0
152162 with :
153163 name : gradle-build-outputs
154164 path : build/repo
@@ -160,6 +170,6 @@ jobs:
160170 - name : Upload assets
161171 # Upload the artifacts to the existing release. Note that the SLSA provenance will
162172 # attest to each artifact file and not the aggregated ZIP file.
163- uses : softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
173+ uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
164174 with :
165175 files : artifacts.zip
0 commit comments