From 4af5886c08d12d14fde035679a6de1aa19fbf7f5 Mon Sep 17 00:00:00 2001 From: Kurnianto Trilaksono Date: Sat, 25 May 2024 21:54:03 +0700 Subject: [PATCH] fix create release script --- .github/workflows/release-kustomize.yml | 7 +++++-- releasing/build-kustomize-binary.sh | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) 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}" }