File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 20
20
21
21
- name : Build
22
22
run : |
23
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./toughradius main.go
24
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./toughradius-arm64 main.go
23
+ mkdir -p ./release
24
+ echo "CGO_ENABLED=0" >> "$GITHUB_ENV"
25
+ echo "GOOS=linux" >> "$GITHUB_ENV"
26
+ echo "GOARCH=amd64" >> "$GITHUB_ENV"
27
+ go build -a -ldflags '-s -w -extldflags "-static"' -o ./release/toughradius main.go
25
28
26
29
- name : Create Release
27
30
id : create_release
40
43
GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
41
44
with :
42
45
upload_url : ${{ steps.create_release.outputs.upload_url }}
43
- asset_path : ./toughradius # 你的二进制文件路径
46
+ asset_path : ./release/ toughradius # 你的二进制文件路径
44
47
asset_name : toughradius # 你的二进制文件名称
45
48
asset_content_type : application/octet-stream
46
49
50
53
GITHUB_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
51
54
with :
52
55
upload_url : ${{ steps.create_release.outputs.upload_url }}
53
- asset_path : ./toughradius-arm64 # 你的二进制文件路径
56
+ asset_path : ./release/ toughradius-arm64 # 你的二进制文件路径
54
57
asset_name : toughradius-arm64 # 你的二进制文件名称
55
58
asset_content_type : application/octet-stream
Original file line number Diff line number Diff line change 1
- BuildVersion=latest v8.0.1 2023-11-15 20:38:29
1
+ BuildVersion=latest v8.0.1 2023-11-15 21:05:01
2
2
ReleaseVersion=v8.0.1
3
- BuildTime=2023-11-15 20:38:29
3
+ BuildTime=2023-11-15 21:05:01
4
4
BuildName=toughradius
5
- CommitID=fe4256407259fb3d0a9366cb9a053dacf7942985
6
- CommitDate=Wed, 15 Nov 2023 20:19:02 +0800
5
+ CommitID=00a1beade470838b3f05857b7dd2c796db261098
6
+ CommitDate=Wed, 15 Nov 2023 20:38:40 +0800
7
7
CommitUser=jamiesun.net@gmail.com
8
- CommitSubject=2023-11-15 20:18:49 : git flow update
8
+ CommitSubject=2023-11-15 20:38:29 : auto release
You can’t perform that action at this time.
0 commit comments