Update rust.yml

This commit is contained in:
Guillem Castro 2023-02-10 17:46:04 +01:00 committed by GitHub
parent 3d5e1816ff
commit 871b79cfbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,9 +37,14 @@ jobs:
- name: Build
run: |
cargo build --verbose --release
- name: Rename binary
- if: matrix.platform == 'windows-latest'
name: Rename binary
run: |
mv target/release/spotify-dl* target/release/spotify-dl.${{ matrix.target }}
mv target/release/spotify-dl.exe target/release/spotify-dl.${{ matrix.target }}
- if: matrix.platform != 'windows-latest'
name: Rename binary
run: |
mv target/release/spotify-dl target/release/spotify-dl.${{ matrix.target }}
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"