This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new a139bc25bc Releasey: Move GH release artifacts upload into `gh create
release` (#3875)
a139bc25bc is described below
commit a139bc25bc16d1ad655c0b2b6490ec110107cd3c
Author: Robert Stupp <[email protected]>
AuthorDate: Tue Mar 3 18:15:36 2026 +0100
Releasey: Move GH release artifacts upload into `gh create release` (#3875)
This change, despite potentially counting as a simplification, enables us
to use [GitHub immutable
releases](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases)
in the future. GH immutable releases do not allow attaching/changing release
artifacts after the release has been created.
---
.github/workflows/release-4-publish-release.yml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/release-4-publish-release.yml
b/.github/workflows/release-4-publish-release.yml
index 4a55f0560e..184854152e 100644
--- a/.github/workflows/release-4-publish-release.yml
+++ b/.github/workflows/release-4-publish-release.yml
@@ -397,16 +397,16 @@ jobs:
- \`apache/polaris-admin:${final_release_tag}\` - Polaris Admin Tool"
#
********************************************************************************
- # Create GitHub release
- exec_process gh release create "${final_release_tag}" \
+ # Collect all artifacts to attach from the artifacts directory
+ readarray -t artifacts_to_attach < <(find "${artifacts_dir}" -type f
-name "*.tar.gz" -o -name "*.tgz" -o -name "*.asc" -o -name "*.sha512" -o -name
"*.prov")
+
+ # Create GitHub release and immediately publish it
+ exec_process gh release create \
--title "${release_title}" \
--notes "${release_notes}" \
- --target "${rc_commit}"
-
- # Attach all artifacts from the artifacts directory
- find "${artifacts_dir}" -type f -name "*.tar.gz" -o -name "*.tgz" -o
-name "*.asc" -o -name "*.sha512" -o -name "*.prov" | while read -r file; do
- exec_process gh release upload "${final_release_tag}" "${file}"
- done
+ --target "${rc_commit}" \
+ "${final_release_tag}" \
+ "${artifacts_to_attach[@]}"
cat <<EOT >> $GITHUB_STEP_SUMMARY
## GitHub Release