-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (44 loc) · 1.28 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
name: Release
on:
release:
types:
- published
jobs:
release:
name: Release
runs-on: ubuntu-20.04
strategy:
matrix:
goos:
- darwin
- linux
- windows
goarch:
- amd64
max-parallel: 3
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get tag reference
id: get-tag-reference
uses: ankitvgupta/ref-to-tag-action@master
with:
ref: ${{ github.ref }}
head_ref: ${{ github.head_ref }}
- name: Cleanup
run: make cleanup
- name: Vendor
run: make vendor
- name: Build
run: make build GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }}
- name: Tar artifact
run: tar -zcvf inizio-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz -C bin inizio
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: inizio-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
asset_name: inizio-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
tag: ${{ steps.get-tag-reference.outputs.tag }}
release_name: Inizio ${{ steps.get-tag-reference.outputs.tag }}