2
0
mirror of https://github.com/Revertron/Alfis synced 2024-11-03 15:40:19 +00:00

Update rust_create_release.yml

This commit is contained in:
Revertron 2021-02-23 12:43:28 +01:00 committed by GitHub
parent 6872dd2519
commit c4fbf94acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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