-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (60 loc) · 1.88 KB
/
release.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build and release
on:
push:
tags:
- '*'
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo $(go env GOPATH)/bin >> $GITHUB_PATH
- name: Build collector
run: UPX_COMPRESS=1 make collector
- name: Build Windows binary
run: make windows
- name: Build Linux binary
run: make linux
- name: Build Darwin binary
run: make darwin
- name: Upload Windows binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/androidqf_windows_amd64.exe
asset_name: androidqf_$tag_windows_amd64.exe
tag: ${{ github.ref }}
overwrite: true
- name: Upload Linux binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/androidqf_linux_amd64
asset_name: androidqf_$tag_linux_amd64
tag: ${{ github.ref }}
overwrite: true
- name: Upload Linux arm64 binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/androidqf_linux_arm64
asset_name: androidqf_$tag_linux_arm64
tag: ${{ github.ref }}
overwrite: true
- name: Upload Darwin binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/androidqf_darwin_amd64
asset_name: androidqf_$tag_darwin_amd64
tag: ${{ github.ref }}
overwrite: true
- name: Upload Darwin arm64 binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/androidqf_darwin_arm64
asset_name: androidqf_$tag_darwin_arm64
tag: ${{ github.ref }}
overwrite: true