diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54612fde..67e50fca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 diff --git a/assets/buildinfo.txt b/assets/buildinfo.txt index b9050890..16794616 100644 --- a/assets/buildinfo.txt +++ b/assets/buildinfo.txt @@ -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