feat: add ignore tag images option (#39) #26
Workflow file for this run
This file contains 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: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Release binary | |
env: | |
cargo: cargo | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
artifact_name: ksnotify | |
asset_name: ksnotify-x86_64-unknown-linux-gnu | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-musl | |
artifact_name: ksnotify | |
asset_name: ksnotify-x86_64-unknown-linux-musl | |
- os: macos-latest | |
target: x86_64-apple-darwin | |
artifact_name: ksnotify | |
asset_name: ksnotify-x86_64-apple-darwin | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install toolchain | |
run: | | |
rustup toolchain install stable --profile minimal | |
rustup default stable | |
cargo install cross | |
- name: Cross build with all features | |
run: cross build --release --target ${{ matrix.target }} --all-features --verbose | |
- name: Upload binaries to release | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }} | |
asset_name: ${{ matrix.asset_name }} | |
tag: ${{ github.ref }} | |
overwrite: true |