name: Release on: push: tags: - 'v*.*.*' permissions: contents: write packages: write env: GO_VERSION: "1.26.3" GORELEASER_VERSION: v2.15.4 jobs: goreleaser: name: GoReleaser runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.2 with: fetch-depth: 0 - uses: actions/setup-go@v6.4.0 with: go-version: ${{ env.GO_VERSION }} cache: true - uses: docker/setup-qemu-action@v4.0.0 - uses: docker/setup-buildx-action@v4.1.0 - name: Log in to GHCR uses: docker/login-action@v4.2.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Install syft (SBOM) uses: anchore/sbom-action/download-syft@v0.24.0 - uses: goreleaser/goreleaser-action@v7.2.2 with: distribution: goreleaser version: ${{ env.GORELEASER_VERSION }} args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}