@@ -73,13 +73,13 @@ jobs:
7373 # Store the hash in a file, which is uploaded as a workflow artifact.
7474 sha256sum $ARTIFACTS | base64 -w0 > artifacts-sha256
7575 - name : Upload build artifacts
76- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
76+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
7777 with :
7878 name : gradle-build-outputs
7979 path : build/repo/${{ steps.publish.outputs.group }}/*/${{ steps.publish.outputs.version }}/*
8080 retention-days : 5
8181 - name : Upload artifacts-sha256
82- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
82+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
8383 with :
8484 name : artifacts-sha256
8585 path : artifacts-sha256
@@ -94,11 +94,14 @@ jobs:
9494 GH_USERNAME : ${{ secrets.GH_USERNAME }}
9595 - name : Export Gradle Properties
9696 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
97100 - name : Publish to Github Pages
98101 if : success()
99102 uses : micronaut-projects/github-pages-deploy-action@master
100103 env :
101- 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') }}
102105 GH_TOKEN : ${{ secrets.GH_TOKEN }}
103106 BRANCH : gh-pages
104107 FOLDER : build/docs
@@ -122,7 +125,7 @@ jobs:
122125 artifacts-sha256 : ${{ steps.set-hash.outputs.artifacts-sha256 }}
123126 steps :
124127 - name : Download artifacts-sha256
125- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
128+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
126129 with :
127130 name : artifacts-sha256
128131 # The SLSA provenance generator expects the hash digest of artifacts to be passed as a job
@@ -155,7 +158,7 @@ jobs:
155158 - name : Checkout repository
156159 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
157160 - name : Download artifacts
158- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
161+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
159162 with :
160163 name : gradle-build-outputs
161164 path : build/repo
@@ -167,6 +170,6 @@ jobs:
167170 - name : Upload assets
168171 # Upload the artifacts to the existing release. Note that the SLSA provenance will
169172 # attest to each artifact file and not the aggregated ZIP file.
170- uses : softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
173+ uses : softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
171174 with :
172175 files : artifacts.zip
0 commit comments