diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27c0158..b1ed2d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest + version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index e40071c..71f0c9d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,9 +1,9 @@ +version: 2 before: hooks: - go mod tidy builds: - - - id: wof-sync-os-postcodes + - id: wof-sync-os-postcodes binary: wof-sync-os-postcodes env: - CGO_ENABLED=0 @@ -12,14 +12,14 @@ builds: - darwin main: ./cmd/wof-sync-os-postcodes archives: - - name_template: {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }} + - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt" snapshot: - name_template: "{{ incpatch .Tag }}-next" + version_template: "{{ incpatch .Tag }}-next" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - "^docs:" + - "^test:"