From 02fc6822d1a0bd7481908c77e305f9dbc124207a Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sun, 27 Jul 2025 16:57:31 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布生产 --- .gitea/workflows/demo.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 614613d..59dfdb1 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -295,6 +295,18 @@ jobs: files: |- ./release/** - run: ls -R ./release/ + - name: setup go + uses: actions/setup-go@v5 + with: + #go-version: '>=1.20.1' + go-version: '^1.13.1' + - run: go version + - name: release-build + run: go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/reverse-${{ github.ref_name }}-linux-amd64 + - name: release-build-windows + run: GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/reverse-${{ github.ref_name }}-windows-amd64.exe + - name: release-build-darwin + run: GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/reverse-${{ github.ref_name }}-darwin-amd64 - name: Use Go Action id: use-go-action-test uses: https://gitea.com/actions/release-action@main