From 4282359e5428882183b751322ceaac4179a4815a Mon Sep 17 00:00:00 2001 From: timmybee Date: Fri, 6 Feb 2026 11:01:45 +0800 Subject: [PATCH] Update .gitea/workflows/release.yaml --- .gitea/workflows/release.yaml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index b7eb6b5..4523444 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -1,20 +1,27 @@ -name: Release +name: release -on: +on: push: tags: - - "v*" + - '*' jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: Create Gitea Release - uses: gitea.com/actions/gitea-release-action@main + - uses: actions/checkout@v3 with: - token: ${{ secrets.GITEA_TOKEN }} - tag_name: ${{ gitea.ref_name }} - name: ${{ gitea.ref_name }} - body: "Automated release" \ No newline at end of file + fetch-depth: 0 + - name: setup go + uses: https://github.com/actions/setup-go@v4 + with: + go-version: '>=1.20.1' + - name: go build + run: go build -o bin/myapp + - name: Use Go Action + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + bin/** + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file