From 86aff82bcd5b593c25983fb2e69041f3f386fd63 Mon Sep 17 00:00:00 2001 From: Umberto Baldi <34278123+umbynos@users.noreply.github.com> Date: Fri, 22 Jul 2022 17:01:32 +0200 Subject: [PATCH] fix mac binary not placed in a top level directory && small enhancements (#16) --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f156d21..88f2ab3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -236,16 +236,16 @@ jobs: gon gon.config.hcl - name: Re-package binary + working-directory: ${{ env.DIST_DIR }} # This step performs the following: # 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file) run: | # GitHub's upload/download-artifact@v2 actions don't preserve file permissions, # so we need to add execution permission back until the action is made to do this. - chmod +x ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_macOS_64bit/${{ env.PROJECT_NAME }} + chmod +x "${{ env.PROJECT_NAME }}_macOS_64bit/${{ env.PROJECT_NAME }}" TAG="${GITHUB_REF/refs\/tags\//}" - tar -czvf "${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_${TAG}_macOS_64bit.tar.gz" \ - -C ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_macOS_64bit/ ${{ env.PROJECT_NAME }} \ - LICENSE.txt + PACKAGE_FILENAME="${{ env.PROJECT_NAME }}_${TAG}_macOS_64bit.tar.gz" + tar -czvf "${PACKAGE_FILENAME}" "${{ env.PROJECT_NAME }}_macOS_64bit" - name: Upload artifacts uses: actions/upload-artifact@v3