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