Skip to content

Commit

Permalink
Fix windows release (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokornyIt authored Dec 15, 2020
1 parent 8b0df03 commit ecd7a24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/full-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
echo BINARY_NAME=$(basename ${GITHUB_REPOSITORY}) >> $GITHUB_ENV
echo GOOS=$(echo ${{ matrix.goos }}) >> $GITHUB_ENV
echo GOARCH=$(echo ${{ matrix.goarch }}) >> $GITHUB_ENV
if [ ${GOOS} == 'windows' ]; then
if [ ${{ matrix.goos }} == 'windows' ]; then
echo BINARY_EXT='.exe' >> $GITHUB_ENV
echo RELEASE_ASSET_EXT='.zip' >> $GITHUB_ENV
echo MEDIA_TYPE='application/zip' >> $GITHUB_ENV
Expand Down Expand Up @@ -97,10 +97,12 @@ jobs:
run: |
cd ${{ env.BUILD_ARTIFACTS_FOLDER }}
if [ ${GOOS} == 'windows' ]; then
if [ ${{ env.GOOS }} == 'windows' ]; then
zip -vr ${{ env.RELEASE_ASSET_NAME }}${{ env.RELEASE_ASSET_EXT }} *
echo 'Windows'
else
tar cvfz ${{ env.RELEASE_ASSET_NAME }}${{ env.RELEASE_ASSET_EXT }} *
echo 'Linux'
fi
id: create_tar

Expand Down

0 comments on commit ecd7a24

Please sign in to comment.