-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 960 Bytes
/
release.yaml
File metadata and controls
34 lines (32 loc) · 960 Bytes
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
name: release-binaries
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- name: Get release information
run: |
echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://go.dev/dl/go1.19.linux-amd64.tar.gz"
project_path: "."
binary_name: "ttv"
ldflags: -X ttv-cli/cmd.buildVersion=${{ env.RELEASE_TAG }} -s -w
extra_files: LICENSE README.md
md5sum: FALSE
overwrite: TRUE