Skip to content

Commit 737e62e

Browse files
committed
refactor: update GoReleaser configuration for versioning and repository ownership
1 parent cd762c0 commit 737e62e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.goreleaser.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
project_name: gh-notif
22

3+
version: 2
4+
35
before:
46
hooks:
57
- go mod tidy
@@ -36,18 +38,13 @@ builds:
3638

3739
archives:
3840
- id: default
39-
builds:
40-
- gh-notif
4141
name_template: >-
4242
{{ .ProjectName }}_
4343
{{- title .Os }}_
4444
{{- if eq .Arch "amd64" }}x86_64
4545
{{- else if eq .Arch "386" }}i386
4646
{{- else }}{{ .Arch }}{{ end }}
4747
{{- if .Arm }}v{{ .Arm }}{{ end }}
48-
format_overrides:
49-
- goos: windows
50-
format: zip
5148
files:
5249
- README.md
5350
- LICENSE
@@ -59,7 +56,7 @@ checksum:
5956
name_template: 'checksums.txt'
6057

6158
snapshot:
62-
name_template: "{{ incpatch .Version }}-next"
59+
version_template: "{{ incpatch .Version }}-next"
6360

6461
changelog:
6562
sort: asc
@@ -88,7 +85,7 @@ changelog:
8885

8986
release:
9087
github:
91-
owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
88+
owner: "SharanRP"
9289
name: gh-notif
9390
draft: false
9491
prerelease: auto
@@ -137,7 +134,7 @@ release:
137134
scoops:
138135
- name: gh-notif
139136
repository:
140-
owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
137+
owner: "SharanRP"
141138
name: scoop-bucket
142139
token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
143140
homepage: https://github.com/SharanRP/gh-notif

0 commit comments

Comments
 (0)