diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b8b707..724e50e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: run: go version - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: install-only: true - name: Show GoReleaser version @@ -35,7 +35,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 if: success() && startsWith(github.ref, 'refs/tags/') with: # either 'goreleaser' (default) or 'goreleaser-pro' diff --git a/.github/workflows/release_check.yml b/.github/workflows/release_check.yml index cf08f39..93cc12a 100644 --- a/.github/workflows/release_check.yml +++ b/.github/workflows/release_check.yml @@ -20,14 +20,22 @@ jobs: run: go version - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: install-only: true - name: Show GoReleaser version run: goreleaser -v + - name: Run GoReleaser Check + uses: goreleaser/goreleaser-action@v6 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: check + - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser diff --git a/.goreleaser.yml b/.goreleaser.yml index 52ec91c..121e9fd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 builds: - env: - CGO_ENABLED=0 @@ -11,7 +12,7 @@ checksum: archives: # Distribute just the binaries by default - - format: binary + - formats: ["binary"] name_template: >- {{ .ProjectName }}_ {{- title .Os }}_ @@ -20,7 +21,7 @@ archives: {{- else }}{{ .Arch }}{{ end }} kos: - - repository: abice/go-enum + - repositories: ["abice/go-enum"] base_image: cgr.dev/chainguard/go # need the go binary for formatting 🔧 purposes 🫤 tags: - "{{.Version}}" @@ -32,7 +33,7 @@ kos: - linux/arm64 snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: