-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (36 loc) · 1.1 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
name: Release
on:
create:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Get dependencies
run: make deps
- name: Run tests
run: make test
- name: Build
run: |
GOOS=linux GOARCH=amd64 go build -o bin/tc-redirect-tap-amd64 ./cmd/tc-redirect-tap
GOOS=linux GOARCH=arm64 go build -o bin/tc-redirect-tap-arm64 ./cmd/tc-redirect-tap
- name: Sign
run: |
echo "${{ hashFiles('bin/tc-redirect-tap-amd64') }}" > bin/tc-redirect-tap-amd64.sha256
echo "${{ hashFiles('bin/tc-redirect-tap-arm64') }}" > bin/tc-redirect-tap-arm64.sha256
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
bin/tc-redirect-tap-amd64
bin/tc-redirect-tap-arm64
bin/tc-redirect-tap-amd64.sha256
bin/tc-redirect-tap-arm64.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}