From 8d015b9d1d700d5b0a6388d94b672611bf0e4073 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Wed, 25 Dec 2024 05:13:55 +0200 Subject: [PATCH] ci: include version in portable binary --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72f1e13..be446d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,18 +13,19 @@ jobs: - uses: dtolnay/rust-toolchain@stable - run: cargo build --release - run: mv ./target/release/wifi-qr.exe wifi-qr.exe + - run: cp wifi-qr.exe wifi-qr-${{github.ref_name}}.exe - name: install NSIS run: | iwr -useb get.scoop.sh -outfile 'install.ps1' .\install.ps1 -RunAsAdmin scoop update scoop bucket add extras - scoop install nsis + scoop install nsis - run: makensis /V4 installer.nsi - run: mv wifi-qr-setup.exe wifi-qr-${{github.ref_name}}-setup.exe - name: release uses: softprops/action-gh-release@v1 with: files: | - wifi-qr.exe + wifi-qr-${{github.ref_name}}.exe wifi-qr-${{github.ref_name}}-setup.exe