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' - 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}}'