name: release # Build and publish a release whenever a semver tag is pushed. on: push: tags: - "v*" jobs: goreleaser: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: # GoReleaser needs the full history and tags for the changelog. fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v5 with: go-version: "1.26.x" check-latest: false cache: false - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: version: "~> v2" args: release --clean env: # Gitea injects a repo-scoped token automatically; GoReleaser reads # GITEA_TOKEN to publish the release to this instance. GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}