chore: bump version #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload release artifact | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| permissions: | |
| contents: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build-macos: | |
| name: Build macOS binary | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: brew install ffmpeg | |
| - run: brew install yt-dlp | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install cargo-packager | |
| run: | | |
| if ! command -v cargo-packager >/dev/null; then | |
| cargo install cargo-packager --locked | |
| fi | |
| # This uses the metadata already configured in Cargo.toml. | |
| # Building step is already included in Cargo.toml's metadata section | |
| - name: Build package | |
| run: cargo-packager --release --formats dmg | |
| # Create a draft GitHub Release for the tag, generate notes from commits/PRs, | |
| # and attach the generated DMG file. | |
| - name: Upload release artifact | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| draft: true | |
| generate_release_notes: true | |
| files: target/release/*.dmg |