ref_name in action
Some checks failed
Publish Release / Publish binaries (push) Has been cancelled

This commit is contained in:
Dvlv 2024-01-20 14:18:04 +00:00
parent deeaf1dc5a
commit fa84546492
No known key found for this signature in database
GPG key ID: 1F4BD7220B7FDCFA

View file

@ -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"