name: Build and Release
on:
push:
tags:
- "v*"
jobs:
usu-build-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: forne
asset_name: forne-linux-amd64
- os: macos-latest
artifact_name: forne
asset_name: forne-macos-amd64
- os: windows-latest
artifact_name: forne.exe
asset_name: forne-windows-amd64
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release --features "cli"
- name: Release binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
body: "The below binaries/executables are for the Forne CLI. See [CHANGELOG.md](./CHANGELOG.md) for details of the changes in this version."