Skip to content

Commit 86aff82

Browse files
authored
fix mac binary not placed in a top level directory && small enhancements (#16)
1 parent bcb0ac5 commit 86aff82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -236,16 +236,16 @@ jobs:
236236
gon gon.config.hcl
237237
238238
- name: Re-package binary
239+
working-directory: ${{ env.DIST_DIR }}
239240
# This step performs the following:
240241
# 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file)
241242
run: |
242243
# GitHub's upload/download-artifact@v2 actions don't preserve file permissions,
243244
# so we need to add execution permission back until the action is made to do this.
244-
chmod +x ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_macOS_64bit/${{ env.PROJECT_NAME }}
245+
chmod +x "${{ env.PROJECT_NAME }}_macOS_64bit/${{ env.PROJECT_NAME }}"
245246
TAG="${GITHUB_REF/refs\/tags\//}"
246-
tar -czvf "${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_${TAG}_macOS_64bit.tar.gz" \
247-
-C ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_macOS_64bit/ ${{ env.PROJECT_NAME }} \
248-
LICENSE.txt
247+
PACKAGE_FILENAME="${{ env.PROJECT_NAME }}_${TAG}_macOS_64bit.tar.gz"
248+
tar -czvf "${PACKAGE_FILENAME}" "${{ env.PROJECT_NAME }}_macOS_64bit"
249249
250250
- name: Upload artifacts
251251
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)