name: release-tag on: push: tags: - '*' env: GOPATH: /go_path GOCACHE: /go_cache jobs: release: runs-on: ubuntu-latest steps: - uses: https://gitea.com/actions/checkout@v3 with: fetch-depth: 0 - uses: https://gitea.com/actions/setup-go@v3 with: go-version: '>=1.20.1' - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go with: patterns: | go.mod go.sum - name: cache go id: cache-go uses: https://github.com/actions/cache@v3 with: path: | /go_path /go_cache key: go_path-${{ steps.hash-go.outputs.hash }} - name: windows build run: mkdir -p bin && GOOS=windows go build -o bin/bridge-windows-amd64.exe - name: linux build run: mkdir -p bin && GOOS=linux go build -o bin/bridge-linux-amd64.exe - name: publish release uses: https://gitea.com/actions/release-action@main with: files: |- bin/** api_key: '${{secrets.RELEASE_TOKEN}}'