-
Notifications
You must be signed in to change notification settings - Fork 105
49 lines (41 loc) · 1.04 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
name: Publish
on:
push:
tags:
- 'v*'
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
asset_name: mergestat-linux-amd64
# - os: windows-latest
# asset_name: mergestat-windows-amd64
- os: macos-latest
asset_name: mergestat-macos-amd64
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: 1.19.4
id: go
- name: Check out source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install libgit2
run: make libgit2
- name: Build
run: make
- name: Compress
run: tar -czvf mergestat.tar.gz -C .build/ .
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: mergestat.tar.gz
asset_name: ${{ matrix.asset_name }}.tar.gz
tag: ${{ github.ref }}