From 0378d77d1dc979bcc918f72b1a833395a39f657a Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:52:33 +0200 Subject: [PATCH] fix vendor packaging (#321) --- .github/workflows/build-binary-package.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-binary-package.yml b/.github/workflows/build-binary-package.yml index 2e70e356..4f3dd8b3 100644 --- a/.github/workflows/build-binary-package.yml +++ b/.github/workflows/build-binary-package.yml @@ -29,13 +29,15 @@ jobs: with: go-version: 1.20.7 - - name: Build all versions + - name: Build all platforms run: | - make vendor platform-all + # build platform-all first so the .xz vendor file is not removed + make platform-all vendor - name: Upload to release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | tag_name="${GITHUB_REF##*/}" - hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -a *-vendor.tar.xz -m "" "$tag_name" + # this will find the $PROGRAM_NAME-vendor.tar.xz file as well + hub release edit $(find . -name "$PROGRAM_NAME*" -maxdepth 1 -printf "-a %p ") -a vendor.tgz -m "" "$tag_name"