-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.27 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build and Release
on:
push:
tags:
- "v*"
jobs:
# This builds and releases for Windows, MacOS, and Linux
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."