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 11:30:29 +01:00 committed by GitHub
parent a04a805ad3
commit 2a2308d155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,13 +51,13 @@ jobs:
cargo build --release
- name: Fill variables
run: |
BIN=./target/release/alfis
NAME=alfis_${GITHUB_REF##*/}.bin
echo "BIN_PATH=./target/release/alfis" >> $GITHUB_ENV
echo "BIN_NAME::alfis_${GITHUB_REF##*/}.bin" >> $GITHUB_ENV
- name: Windows variables
if: contains(matrix.os, 'windows')
run: |
BIN=./target/release/alfis.exe
NAME=Alfis_${GITHUB_REF##*/}.exe
echo "BIN_PATH=./target/release/alfis.exe" >> $GITHUB_ENV
echo "BIN_NAME::alfis_${GITHUB_REF##*/}.exe" >> $GITHUB_ENV
- name: Upload binary
id: upload-binary
uses: actions/upload-release-asset@v1
@ -65,6 +65,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.make_release.outputs.upload_url }}
asset_path: $BIN
asset_name: $NAME
asset_path: ${{ env.BIN_PATH }}
asset_name: ${{ env.BIN_NAME }}
asset_content_type: application/octet-stream