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:
parent
6872dd2519
commit
c4fbf94acf
9
.github/workflows/rust_create_release.yml
vendored
9
.github/workflows/rust_create_release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user