Skip to content

Commit

Permalink
fix mac binary not placed in a top level directory && small enhanceme…
Browse files Browse the repository at this point in the history
…nts (#16)
  • Loading branch information
umbynos authored Jul 22, 2022
1 parent bcb0ac5 commit 86aff82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86aff82

Please sign in to comment.