-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.31 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: Main
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: commit.txt
run: git rev-parse HEAD | tr -d "\n" > http/misc/commit.txt
-
name: Build
uses: crazy-max/ghaction-xgo@v2
with:
pkg: "cmd"
trimpath: true
prefix: authen
ldflags: -s -w
targets: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64
-
name: Shrink (UPX)
uses: crazy-max/ghaction-upx@v2
with:
version: latest
files: |
/home/runner/work/authen/authen/build/authen-linux-amd64
/home/runner/work/authen/authen/build/authen-linux-arm64
/home/runner/work/authen/authen/build/authen-darwin-arm64
/home/runner/work/authen/authen/build/authen-darwin-amd64
-
name: Release
uses: softprops/action-gh-release@v1
with:
files: |
LICENSE
/home/runner/work/authen/authen/build/authen-linux-amd64
/home/runner/work/authen/authen/build/authen-linux-arm64
/home/runner/work/authen/authen/build/authen-darwin-arm64
/home/runner/work/authen/authen/build/authen-darwin-amd64