2024-05-11 00:04:16 +02:00
|
|
|
name: Release - MacOS
|
2024-05-10 23:13:52 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-05-10 23:23:01 +02:00
|
|
|
tags:
|
|
|
|
- '*'
|
2024-05-10 23:13:52 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: install Rust stable
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cargo build --verbose --release
|
2024-05-11 00:23:08 +02:00
|
|
|
- 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
|
2024-05-10 23:13:52 +02:00
|
|
|
- name: Rename binary
|
|
|
|
run: |
|
2024-05-11 00:23:08 +02:00
|
|
|
mv target/release/spotify-dl target/release/spotify-dl.macos
|
2024-05-10 23:13:52 +02:00
|
|
|
- name: Upload MacOS Artifact
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
allowUpdates: True
|
|
|
|
makeLatest: True
|
|
|
|
omitBody: True
|
|
|
|
omitBodyDuringUpdate: True
|
|
|
|
omitNameDuringUpdate: True
|
2024-05-11 00:23:08 +02:00
|
|
|
artifacts: target/release/spotify-dl.macos, target/release/spotify-dl.macos.tar.gz
|
2024-05-10 23:13:52 +02:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|