Skip to content

Commit da6d507

Browse files
committed
Refactor GoReleaser configuration: remove validation flags and update asset naming template
1 parent a84a3ec commit da6d507

2 files changed

Lines changed: 3 additions & 38 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
version: ~v2
2727
distribution: goreleaser
28-
args: release --clean --skip-validate
28+
args: release --clean
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
- name: Upload assets

.goreleaser.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
# GoReleaser configuration
22
version: 2
33

4-
# Disable semantic version checking to allow custom tag formats
5-
snapshot:
6-
name_template: "{{ incpatch .Version }}-next"
7-
8-
# Disable semver checking
9-
git:
10-
ignore_tags:
11-
- "{{ not (hasPrefix .Tag \"v\") }}"
12-
prerelease_suffix: "-"
13-
144
# Build configuration
155
builds:
166
- id: gURL
@@ -33,7 +23,7 @@ builds:
3323
# Archive configuration
3424
archives:
3525
- id: gURL
36-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
26+
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
3727
format_overrides:
3828
- goos: windows
3929
format: zip
@@ -44,37 +34,12 @@ archives:
4434

4535
# Release configuration
4636
release:
47-
# Disable automatic release notes generation
4837
disable: false
49-
# Don't validate the tag as semver
50-
prerelease: auto
5138

5239
# Changelog configuration
5340
changelog:
54-
sort: asc
55-
filters:
56-
exclude:
57-
- "^docs:"
58-
- "^test:"
59-
- "^chore:"
60-
- "merge conflict"
61-
- Merge pull request
62-
- Merge remote-tracking branch
63-
- Merge branch
41+
disable: true
6442

6543
# Checksum configuration
6644
checksum:
6745
name_template: "checksums.txt"
68-
69-
# Docker configuration (optional)
70-
dockers:
71-
- image_templates:
72-
- "ghcr.io/academic/gurl:{{ .Tag }}"
73-
- "ghcr.io/academic/gurl:latest"
74-
dockerfile: Dockerfile
75-
build_flag_templates:
76-
- "--platform=linux/amd64"
77-
- "--label=org.opencontainers.image.created={{ .Date }}"
78-
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
79-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
80-
- "--label=org.opencontainers.image.version={{ .Version }}"

0 commit comments

Comments
 (0)