From 148fd3973b589afc046a44afd71242dfebba70db Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Sun, 7 Aug 2022 09:40:52 -0400 Subject: [PATCH] Fix packaging issues --- package.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/package.sh b/package.sh index 44feadfb..3e63be83 100755 --- a/package.sh +++ b/package.sh @@ -120,6 +120,10 @@ mkdir $tmp_musl_pkg/$release copy_binaries $tmp_musl_pkg/$release $GOPATH/bin ( cd $tmp_musl_pkg; tar cvfz $tarball $release ) +if [ -n "$API_TOKEN" ]; then + upload_asset $tmp_musl_pkg/$tarball $RELEASE_ID $API_TOKEN + fi + ################################################################################ # Build version for ARM64 rm -f $GOPATH/bin/* @@ -133,6 +137,10 @@ mkdir $tmp_linux_arm64_pkg/$release copy_binaries $tmp_linux_arm64_pkg/$release $GOPATH/bin/linux_arm64 ( cd $tmp_linux_arm64_pkg; tar cvfz $tarball $release ) +if [ -n "$API_TOKEN" ]; then + upload_asset $tmp_linux_arm64_pkg/$tarball $RELEASE_ID $API_TOKEN +fi + ################################################################################ # Build version for ARM32 rm -f $GOPATH/bin/* @@ -146,11 +154,7 @@ mkdir $tmp_linux_arm_pkg/$release copy_binaries $tmp_linux_arm_pkg/$release $GOPATH/bin/linux_arm ( cd $tmp_linux_arm_pkg; tar cvfz $tarball $release ) -################################################################################ -# Upload if passed an API token if [ -n "$API_TOKEN" ]; then - upload_asset $tmp_musl_pkg/$tarball $RELEASE_ID $API_TOKEN - upload_asset $tmp_linux_arm64_pkg/$tarball $RELEASE_ID $API_TOKEN upload_asset $tmp_linux_arm_pkg/$tarball $RELEASE_ID $API_TOKEN fi