Skip to content

Commit

Permalink
Zip binaries, fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 4, 2023
1 parent 834c209 commit c3c0083
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
run: |
mkdir -p "./${OUTPUT_FOLDER}"
go build -C "./cmd/${TOOL_NAME}" -o "$(pwd)/${OUTPUT_FOLDER}/${TOOL_NAME}"
- uses: thedoctor0/[email protected]
with:
type: zip
directory: ${{ env.OUTPUT_FOLDER }}
path: ${{ env.TOOL_NAME }}
filename: ${{ env.TOOL_NAME }}-${{ matrix.os }}-${{ matrix.arch }}.zip
custom: '-9' # highest compression
- name: Upload Release Artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -37,4 +44,4 @@ jobs:
BUILT_ARCH: ${{ matrix.arch }}
run: |
gh release upload --clobber "${TAG_NAME}" \
"./${OUTPUT_FOLDER}/${TOOL_NAME}#${TOOL_NAME}-${BUILT_OS}-${BUILT_ARCH}"
"./${OUTPUT_FOLDER}/${TOOL_NAME}-${BUILT_OS}-${BUILT_ARCH}.zip"

0 comments on commit c3c0083

Please sign in to comment.