-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 886 Bytes
/
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
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build
run: make
- name: Unit tests
run: make unit-tests
- name: Integration tests
run: make integration-tests
- name: Build amd64
env:
GOOS: linux
GOARCH: amd64
run: make clean && make && tar -cvf lisst-amd64.tar lisst
- name: Build arm64
env:
GOOS: linux
GOARCH: arm64
run: make clean && make && tar -cvf lisst-arm64.tar lisst
- name: Publish release
uses: ncipollo/release-action@v1
with:
artifacts: lisst-*.tar
makeLatest: true
omitBody: true