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
a04a805ad3
commit
2a2308d155
12
.github/workflows/rust_create_release.yml
vendored
12
.github/workflows/rust_create_release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user