Skip to content

build: Update GH action steps #4

build: Update GH action steps

build: Update GH action steps #4

Workflow file for this run

name: Publish
on:
workflow_dispatch: # enable manual triggering
push:
tags:
- '*'
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
linux,
windows,
macos
]
include:
- name: linux
os: ubuntu-latest
artifact_name: domain-checker
asset_name: domain-checker-linux
- name: windows
os: windows-latest
artifact_name: domain-checker.exe
asset_name: domain-checker-windows
- name: macos
os: macos-latest
artifact_name: domain-checker
asset_name: domain-checker-macos
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build
run: cargo build --release --locked
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GH_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}