@@ -13,11 +13,16 @@ 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
1722 uses : actions/checkout@v5
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
2227 uses : actions/setup-java@v5
2328 with :
@@ -68,13 +73,13 @@ jobs:
6873 # Store the hash in a file, which is uploaded as a workflow artifact.
6974 sha256sum $ARTIFACTS | base64 -w0 > artifacts-sha256
7075 - name : Upload build artifacts
71- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6 .0
76+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0 .0
7277 with :
7378 name : gradle-build-outputs
7479 path : build/repo/${{ steps.publish.outputs.group }}/*/${{ steps.publish.outputs.version }}/*
7580 retention-days : 5
7681 - name : Upload artifacts-sha256
77- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6 .0
82+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0 .0
7883 with :
7984 name : artifacts-sha256
8085 path : artifacts-sha256
@@ -89,11 +94,14 @@ jobs:
8994 GH_USERNAME : ${{ secrets.GH_USERNAME }}
9095 - name : Export Gradle Properties
9196 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 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.tag_name')" >> $GITHUB_ENV
92100 - name : Publish to Github Pages
93101 if : success()
94102 uses : micronaut-projects/github-pages-deploy-action@master
95103 env :
96- 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') }}
97105 GH_TOKEN : ${{ secrets.GH_TOKEN }}
98106 BRANCH : gh-pages
99107 FOLDER : build/docs
@@ -117,7 +125,7 @@ jobs:
117125 artifacts-sha256 : ${{ steps.set-hash.outputs.artifacts-sha256 }}
118126 steps :
119127 - name : Download artifacts-sha256
120- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
128+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
121129 with :
122130 name : artifacts-sha256
123131 # The SLSA provenance generator expects the hash digest of artifacts to be passed as a job
@@ -150,7 +158,7 @@ jobs:
150158 - name : Checkout repository
151159 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
152160 - name : Download artifacts
153- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
161+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
154162 with :
155163 name : gradle-build-outputs
156164 path : build/repo
@@ -162,6 +170,6 @@ jobs:
162170 - name : Upload assets
163171 # Upload the artifacts to the existing release. Note that the SLSA provenance will
164172 # attest to each artifact file and not the aggregated ZIP file.
165- uses : softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
173+ uses : softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
166174 with :
167175 files : artifacts.zip
0 commit comments