diff --git a/.github/workflows/release-kustomize.yml b/.github/workflows/release-kustomize.yml index fad0254fde3..f1fd1167a1a 100644 --- a/.github/workflows/release-kustomize.yml +++ b/.github/workflows/release-kustomize.yml @@ -134,13 +134,16 @@ jobs: # Build kustomize binary ./releasing/build-kustomize-binary.sh - # Ccompile changelog + # Compile changelog changelog_file=$(mktemp) currentTag=$(git describe --tags) ./releasing/compile-changelog.sh "kustomize" "${currentTag}" "${changelog_file}" # Create github releases + export additional_release_artifacts_arg=("dist"/*) + gh release create "${currentTag}" \ --title "${currentTag}" \ --draft \ - --notes-file "${changelog_file}" + --notes-file "${changelog_file}" \ + "${additional_release_artifacts_arg[@]}" diff --git a/releasing/build-kustomize-binary.sh b/releasing/build-kustomize-binary.sh index 4c0c96505b3..06cdc0a2e41 100755 --- a/releasing/build-kustomize-binary.sh +++ b/releasing/build-kustomize-binary.sh @@ -65,9 +65,6 @@ main() { mkdir -p dist release_artifact_dir=${PWD}/dist - - additional_release_artifacts_arg=("$release_artifact_dir"/*) - build_kustomize_binary "${version}" "${release_artifact_dir}" }