diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f9125cd..f80b060 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.TOKEN }}