name: release on: push: tags: ["v*.*.*"] jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: # GoReleaser builds the changelog from history, so a shallow clone # would produce an empty one. fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version: "1.25.x" # See build.yml: the runner's cache server is unreachable from job # containers, so caching costs minutes of timeouts instead of saving. cache: false - uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --clean env: # Injected by Gitea for every workflow run; no personal token needed. GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}