diff --git a/.gitea/workflows/release-tag.yml b/.gitea/workflows/release-tag.yml index d1c13c5..293dc71 100644 --- a/.gitea/workflows/release-tag.yml +++ b/.gitea/workflows/release-tag.yml @@ -17,11 +17,11 @@ jobs: with: go-version: '>=1.20.1' - name: release-build - run: go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-linux-amd64 + 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=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-windows-amd64.exe + 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=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-darwin-amd64 + 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 uses: actions/release-action@main diff --git a/README.md b/README.md index d5c3c94..6da8c10 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [中文](README_CN.md) -[![Build Status](https://drone.gitea.com/api/badges/xorm/reverse/status.svg)](https://drone.gitea.com/xorm/reverse) [![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse) +[![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse) [![](https://goreportcard.com/badge/xorm.io/reverse)](https://goreportcard.com/report/xorm.io/reverse) # Reverse diff --git a/README_CN.md b/README_CN.md index 2de7856..7982ad8 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,6 +1,6 @@ [English](README.md) -[![Build Status](https://drone.gitea.com/api/badges/xorm/reverse/status.svg)](https://drone.gitea.com/xorm/reverse) [![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse) +[![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse) [![](https://goreportcard.com/badge/xorm.io/reverse)](https://goreportcard.com/report/xorm.io/reverse) # Reverse