Update .gitea/workflows/build.yaml
Some checks failed
Release Version / build (push) Failing after 1m14s
Some checks failed
Release Version / build (push) Failing after 1m14s
This commit is contained in:
parent
38d9c4a15f
commit
4d4ecf8c11
|
@ -18,10 +18,14 @@ jobs:
|
|||
with:
|
||||
go-version: '1.23.1'
|
||||
|
||||
- name: Build Go binary
|
||||
- name: Build Go binary for Linux
|
||||
run: |
|
||||
go mod tidy
|
||||
go build -o s3-client
|
||||
go build -o s3-client_linux.x86_64
|
||||
|
||||
- name: Build Go binary for Windows
|
||||
run: |
|
||||
GOOS=windows GOARCH=amd64 go build -o s3-client_windows.x86_64.exe
|
||||
|
||||
- name: Get latest commit ID
|
||||
id: get_commit
|
||||
|
@ -61,10 +65,17 @@ jobs:
|
|||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Upload Go binary to release
|
||||
- name: Upload Go binaries to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: ./s3-client
|
||||
files: |
|
||||
./s3-client_linux.x86_64
|
||||
./s3-client_windows.x86_64.exe
|
||||
tag_name: ${{ env.new_version }}
|
||||
name: Release ${{ env.new_version }}
|
||||
body: |
|
||||
Automatic release by Gitea CI
|
||||
Release version ${{ env.new_version }}.
|
||||
Commit ID: ${{ env.commit_id }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user