Skip to content

Commit

Permalink
Revert "Add support to produce zip files for all platforms"
Browse files Browse the repository at this point in the history
This reverts commit 18e8043.
  • Loading branch information
mjmayer committed Sep 19, 2022
1 parent d8240ff commit de6f3eb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions action.yml
Expand Up @@ -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'
Expand All @@ -121,7 +117,6 @@ runs:
- ${{ inputs.retry }}
- ${{ inputs.post_command }}
- ${{ inputs.compress_assets }}
- ${{ inputs.zip_assets }}

branding:
icon: 'package'
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Expand Up @@ -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}
Expand Down

0 comments on commit de6f3eb

Please sign in to comment.