-
Notifications
You must be signed in to change notification settings - Fork 43
55 lines (47 loc) · 1.45 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
50
51
52
53
54
55
name: Build release
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v1
with:
go-version: 1.14
- uses: actions/[email protected]
- run: go mod download
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- name: Current tag
run: echo ${{steps.tag.outputs.tag}}
- uses: izumin5210/[email protected]
with:
goxz-version: v0.6.0
name: lazykube
arch: amd64,386
os: darwin,linux,windows
package: ./cmd/lazykube
ldflags: "-X github.com/TNK-Studio/lazykube/pkg/app.Version=${{steps.tag.outputs.tag}}"
- uses: izumin5210/[email protected]
with:
goxz-version: v0.6.0
name: lazykube
arch: arm
os: linux
package: ./cmd/lazykube
ldflags: "-X github.com/TNK-Studio/lazykube/pkg/app.Version=${{steps.tag.outputs.tag}}"
- uses: softprops/action-gh-release@v1
with:
files: './dist/*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
- uses: izumin5210/[email protected]
with:
tap: TNK-Studio/homebrew-tools
token: ${{ secrets.GITHUB_TOKEN }}
tap-token: ${{ secrets.TAP_GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')