-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.41 KB
/
release.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
name: Publish for ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
file: "*.tar.gz"
- os: windows-latest
file: "*.zip"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-go@v2
- uses: actions/setup-node@v3
with:
node-version: '16.5.0'
- name: setup env
# https://github.com/actions/setup-go/issues/14
run: |
echo $(go env GOPATH)/bin >> $GITHUB_PATH
shell: bash
- name: Dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libgtk-3-dev libappindicator3-dev
- name: Build
if: matrix.os != 'windows-latest'
run: |
make deps
make release
- name: Build
if: matrix.os == 'windows-latest'
run: |
make deps
make release
# make clean
# make release-32
shell: bash
- name: Upload Release Binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.file }}
file_glob: true
tag: ${{ github.ref }}
overwrite: true