diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11d62f9..a934898 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,12 +63,12 @@ jobs: go-version: '^1.26.3' - run: go mod download - name: Validates GO releaser config - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v7 with: distribution: goreleaser args: check - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v7 with: distribution: goreleaser args: release --snapshot --skip=publish --clean diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbb7115..c1d55b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: app_id: ${{ secrets.HOMEBREW_APP_ID }} private_key: ${{ secrets.HOMEBREW_APP_PRIVKEY }} - name: Release via goreleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v7 with: distribution: goreleaser args: release --release-notes=doc/whats_new.md diff --git a/.goreleaser.yml b/.goreleaser.yml index e232d52..ddbb8fe 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + builds: - binary: FLEcli @@ -52,16 +54,20 @@ dockers: - "--label=org.opencontainers.image.version={{.Version}}" archives: -- name_template: >- +- id: main-archive + formats: ["tar.gz"] + name_template: >- {{ .ProjectName }}_{{ .Version }}_ {{- if eq .Os "darwin"}}macOS {{- else }}{{- .Os }}{{ end }}_ {{- if eq .Arch "amd64" }}64-bit {{- else if eq .Arch "386" }}32-bit {{- else }}{{ .Arch }}{{ end }} + format_overrides: - goos: windows - format: zip + formats: ["zip"] + files: - README.md - doc/whats_new.md @@ -77,10 +83,10 @@ checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: - skip: true + disable: true sort: asc filters: exclude: diff --git a/Makefile b/Makefile index ab3064d..73c5e72 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ ## GITHUB_ACTIONS is set when running as a Github Action -.PHONY: all lint vet test full-test test-coverage build clean +.PHONY: all lint vet test full-test test-coverage build clean check-goreleaser all: build @@ -21,6 +21,9 @@ lint: ## Lint Golang files vet: ## Run go vet @go vet ./... +check-goreleaser: ## Validate the goRelease configuration + @goreleaser check + test: ## Run unit tests @go test ./...