spotify-dl/.github/workflows/macos.yml
2024-05-13 21:50:45 +02:00

45 lines
No EOL
1.1 KiB
YAML

name: Release - MacOS
on:
push:
tags:
- '*'
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
- 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
- name: Upload MacOS Artifact
uses: ncipollo/release-action@v1
with:
allowUpdates: True
makeLatest: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
artifacts: target/release/spotify-dl.macos, target/release/spotify-dl.macos.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}