Skip to content

Commit

Permalink
2023-11-15 21:05:01 : release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesun committed Nov 15, 2023
1 parent 2f96cf1 commit 365fc9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:

- name: Build
run: |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./toughradius main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -ldflags '-s -w -extldflags "-static"' -o ./toughradius-arm64 main.go
mkdir -p ./release
echo "CGO_ENABLED=0" >> "$GITHUB_ENV"
echo "GOOS=linux" >> "$GITHUB_ENV"
echo "GOARCH=amd64" >> "$GITHUB_ENV"
go build -a -ldflags '-s -w -extldflags "-static"' -o ./release/toughradius main.go
- name: Create Release
id: create_release
Expand All @@ -40,7 +43,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./toughradius # 你的二进制文件路径
asset_path: ./release/toughradius # 你的二进制文件路径
asset_name: toughradius # 你的二进制文件名称
asset_content_type: application/octet-stream

Expand All @@ -50,6 +53,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./toughradius-arm64 # 你的二进制文件路径
asset_path: ./release/toughradius-arm64 # 你的二进制文件路径
asset_name: toughradius-arm64 # 你的二进制文件名称
asset_content_type: application/octet-stream
10 changes: 5 additions & 5 deletions assets/buildinfo.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BuildVersion=latest v8.0.1 2023-11-15 20:38:29
BuildVersion=latest v8.0.1 2023-11-15 21:05:01
ReleaseVersion=v8.0.1
BuildTime=2023-11-15 20:38:29
BuildTime=2023-11-15 21:05:01
BuildName=toughradius
CommitID=fe4256407259fb3d0a9366cb9a053dacf7942985
CommitDate=Wed, 15 Nov 2023 20:19:02 +0800
CommitID=00a1beade470838b3f05857b7dd2c796db261098
CommitDate=Wed, 15 Nov 2023 20:38:40 +0800
CommitUser=jamiesun.net@gmail.com
CommitSubject=2023-11-15 20:18:49 : git flow update
CommitSubject=2023-11-15 20:38:29 : auto release

0 comments on commit 365fc9b

Please sign in to comment.