Skip to content

Commit

Permalink
Create Windows packages in ZIP
Browse files Browse the repository at this point in the history
Signed-off-by: Ismael González <[email protected]>
  • Loading branch information
ismaelgv committed Nov 6, 2021
1 parent 79680f3 commit be70685
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
run: |
base_name="${PROJECT_NAME}-${VERSION}-${TARGET}"
package_name="${package_name}.tar.gz"
deploy_dir="${BUILD_DIR}/${base_name}"
# Create deployment directory
Expand All @@ -95,7 +94,13 @@ jobs:
cp LICENSE "${deploy_dir}"
# Archive
tar czf "${package_name}" -C "${BUILD_DIR}" "${base_name}"/*
if [[ "${TARGET}" == *"-windows-"* ]]; then
package_name="${base_name}.zip"
7z a "${package_name}" "./${BUILD_DIR}/${base_name}"
else
package_name="${base_name}.tar.gz"
tar czf "${package_name}" -C "${BUILD_DIR}" "${base_name}"
fi
echo ::set-output name=name::${package_name}
Expand Down

0 comments on commit be70685

Please sign in to comment.