From c4fbf94acf566fd7e3c04f6d58a90e7fc35c2124 Mon Sep 17 00:00:00 2001 From: Revertron <105154+Revertron@users.noreply.github.com> Date: Tue, 23 Feb 2021 12:43:28 +0100 Subject: [PATCH] Update rust_create_release.yml --- .github/workflows/rust_create_release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust_create_release.yml b/.github/workflows/rust_create_release.yml index 9f34987..83d1a7a 100644 --- a/.github/workflows/rust_create_release.yml +++ b/.github/workflows/rust_create_release.yml @@ -36,7 +36,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ windows-latest, ubuntu-latest, macOS-latest] + os: [ windows-latest ] defaults: run: @@ -57,8 +57,9 @@ jobs: - name: Windows variables if: contains(matrix.os, 'windows') run: | - echo "BIN_PATH=./target/release/alfis.exe" >> $GITHUB_ENV - echo "BIN_NAME=alfis_${GITHUB_REF##*/}.exe" >> $GITHUB_ENV + zip -9 -r target/release/alfis.exe alfis-latest.zip + echo "BIN_PATH=alfis-latest.zip" >> $GITHUB_ENV + echo "BIN_NAME=alfis_${GITHUB_REF##*/}.zip" >> $GITHUB_ENV - name: Upload binary id: upload-binary uses: actions/upload-release-asset@v1 @@ -68,4 +69,4 @@ jobs: upload_url: ${{ needs.make_release.outputs.upload_url }} asset_path: ${{ env.BIN_PATH }} asset_name: ${{ env.BIN_NAME }} - asset_content_type: application/octet-stream + asset_content_type: application/zip