From fa845464925ca017c1a295b5f98f72b89e8f788a Mon Sep 17 00:00:00 2001 From: Dvlv Date: Sat, 20 Jan 2024 14:18:04 +0000 Subject: [PATCH] ref_name in action --- .github/workflows/rust.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bae3f2c..0e45f5d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,22 +22,22 @@ jobs: - name: Make Zip run: | - mkdir BoxBuddy-${{github.ref}} - mv target/release/boxbuddy-rs BoxBuddy-${{github.ref}} - mv scripts/install.sh BoxBuddy-${{github.ref}} - mv scripts/uninstall.sh BoxBuddy-${{github.ref}} - mv -r po BoxBuddy-${{github.ref}}/ - mv icons/io.github.dvlv.boxbuddyrs.svg BoxBuddy-${{github.ref}}/ - mv io.github.dvlv.boxbuddyrs.desktop BoxBuddy-${{github.ref}}/ - zip -r BoxBuddy-${{github.ref}}.zip BoxBuddy-${{github.ref}} + mkdir BoxBuddy-${{github.ref_name}} + mv target/release/boxbuddy-rs BoxBuddy-${{github.ref_name}} + mv scripts/install.sh BoxBuddy-${{github.ref_name}} + mv scripts/uninstall.sh BoxBuddy-${{github.ref_name}} + mv -r po BoxBuddy-${{github.ref_name}}/ + mv icons/io.github.dvlv.boxbuddyrs.svg BoxBuddy-${{github.ref_name}}/ + mv io.github.dvlv.boxbuddyrs.desktop BoxBuddy-${{github.ref_name}}/ + zip -r BoxBuddy-${{github.ref_name}}.zip BoxBuddy-${{github.ref_name}} - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: BoxBuddy-${{github.ref}}.zip - asset_name: BoxBuddy-${{github.ref}}.zip + file: BoxBuddy-${{github.ref_name}}.zip + asset_name: BoxBuddy-${{github.ref_name}}.zip tag: ${{ github.ref }} overwrite: true body: "This is my release text"