From 302367232e57e471fdb59fb4b73d54f7421eb9e3 Mon Sep 17 00:00:00 2001 From: Guillem Castro Date: Sat, 11 May 2024 00:23:08 +0200 Subject: [PATCH] generate tar for mac on release --- .github/workflows/macos.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index dd6d8f1..b4ce110 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -26,9 +26,15 @@ jobs: - name: Build run: | cargo build --verbose --release + - name: Compress binary + run: | + tar -czvf target/release/spotify-dl.macos.tar.gz target/release/spotify-dl + - name: SHA 256 + run: | + shasum -a 256 target/release/spotify-dl.macos.tar.gz - name: Rename binary run: | - mv target/release/spotify-dl target/release/spotify-dl.macos-x86_64 + mv target/release/spotify-dl target/release/spotify-dl.macos - name: Upload MacOS Artifact uses: ncipollo/release-action@v1 with: @@ -37,5 +43,5 @@ jobs: omitBody: True omitBodyDuringUpdate: True omitNameDuringUpdate: True - artifacts: target/release/spotify-dl.macos-x86_64 + artifacts: target/release/spotify-dl.macos, target/release/spotify-dl.macos.tar.gz token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file