-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (46 loc) · 1.28 KB
/
release.yml
File metadata and controls
59 lines (46 loc) · 1.28 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Release
on:
release:
types: [created]
jobs:
generate:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
artifact_name: onesky-ubuntu20
- os: ubuntu-18.04
artifact_name: onesky-ubuntu18
- os: ubuntu-16.04
artifact_name: onesky-ubuntu16
- os: macos-latest
artifact_name: onesky-macos
- os: windows-latest
artifact_name: onesky-win.exe
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
- name: Checkout the repository
uses: actions/checkout@master
- name: Test
run: go test -v ./src/...
- name: Build binaries
run: make build
# - name: Save binaries
# uses: actions/upload-artifact@v2
# with:
# name: ${{ matrix.artifact_name }}
# path: bin/onesky
- name: Upload the artifacts
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/onesky
asset_name: ${{ matrix.artifact_name }}
tag: ${{ github.ref }}
overwrite: true