-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.14 KB
/
go.yaml
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
37
38
39
on: [push]
name: build and create release
jobs:
build:
outputs:
version: ${{ steps.get_version.outputs.VERSION }}
strategy:
matrix:
include:
- os: ubuntu-latest
go-version: 1.16.x
artifact_name: onyxiactl
asset_name: onyxiactl-linux
- os: macos-latest
go-version: 1.16.x
artifact_name: onyxiactl
asset_name: onyxiactl-macos
- os: windows-latest
go-version: 1.16.x
artifact_name: onyxiactl.exe
asset_name: onyxiactl-windows.exe
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: build
run: go build .
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true