From de6f3eb742495c29b3d12ebec13aad45e5f7fded Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 19 Sep 2022 14:55:41 -0700 Subject: [PATCH] Revert "Add support to produce zip files for all platforms" This reverts commit 18e80432eedb910720769a5015d46ad970eb010a. --- README.md | 1 - action.yml | 5 ----- release.sh | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index b47f686..4e39869 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,6 @@ jobs: | retry | **Optional** | How many times retrying if upload fails. `3` by default. | | post_command | **Optional** | Extra command that will be executed for teardown work. e.g. you can use it to upload artifacts to AWS s3 or aliyun OSS | | compress_assets | **Optional** | Upload execuable binaries rather than `.tar.gz` or `.zip` package. | -| zip_assets | **Optional** | Upload executable binaries published in a `.zip` package. `FALSE` by default. | ### Advanced Example diff --git a/action.yml b/action.yml index 3c23c90..768ba56 100644 --- a/action.yml +++ b/action.yml @@ -91,10 +91,6 @@ inputs: description: 'Compress assets before uploading' required: false default: 'TRUE' - zip_assets: - description: 'Produce zip file assets for all platforms' - required: false - default: 'FALSE' runs: using: 'docker' @@ -121,7 +117,6 @@ runs: - ${{ inputs.retry }} - ${{ inputs.post_command }} - ${{ inputs.compress_assets }} - - ${{ inputs.zip_assets }} branding: icon: 'package' diff --git a/release.sh b/release.sh index 7110e2d..767ac32 100755 --- a/release.sh +++ b/release.sh @@ -109,7 +109,7 @@ if [ ${INPUT_COMPRESS_ASSETS^^} == 'TRUE' ]; then RELEASE_ASSET_EXT='.tar.gz' MEDIA_TYPE='application/gzip' RELEASE_ASSET_FILE=${RELEASE_ASSET_NAME}${RELEASE_ASSET_EXT} - if [ ${INPUT_GOOS} == 'windows' || ${INPUT_ZIP_ASSETS} == 'TRUE' ]; then + if [ ${INPUT_GOOS} == 'windows' ]; then RELEASE_ASSET_EXT='.zip' MEDIA_TYPE='application/zip' RELEASE_ASSET_FILE=${RELEASE_ASSET_NAME}${RELEASE_ASSET_EXT}