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 13:59:15 +01:00 committed by GitHub
parent c4fbf94acf
commit c05082eaf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,13 +53,17 @@ jobs:
- name: Fill variables
run: |
echo "BIN_PATH=./target/release/alfis" >> $GITHUB_ENV
echo "BIN_NAME=alfis_${GITHUB_REF##*/}.bin" >> $GITHUB_ENV
echo "BIN_NAME=alfis_${GITHUB_REF##*/}.zip" >> $GITHUB_ENV
- name: Windows variables
if: contains(matrix.os, 'windows')
run: |
zip -9 -r target/release/alfis.exe alfis-latest.zip
echo "BIN_PATH=alfis-latest.zip" >> $GITHUB_ENV
echo "BIN_PATH=target/release/alfis.exe" >> $GITHUB_ENV
echo "BIN_NAME=alfis_${GITHUB_REF##*/}.zip" >> $GITHUB_ENV
- name: Packaging
uses: papeloto/action-zip@v1
with:
files: ${{ env.BIN_PATH }}
dest: ${{ env.BIN_NAME }}
- name: Upload binary
id: upload-binary
uses: actions/upload-release-asset@v1
@ -67,6 +71,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.make_release.outputs.upload_url }}
asset_path: ${{ env.BIN_PATH }}
asset_path: ${{ env.BIN_NAME }}
asset_name: ${{ env.BIN_NAME }}
asset_content_type: application/zip