Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 10 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

builds:
- binary: FLEcli

Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ./...

Expand Down
Loading