Skip to content

Commit 24ff729

Browse files
authored
Merge pull request #25 from whiteducksoftware/feat/goreleaser-update-3
feat: goreleaser config change
2 parents 0b74dd1 + 02b8e52 commit 24ff729

File tree

2 files changed

+41
-51
lines changed

2 files changed

+41
-51
lines changed

.goreleaser-windows.yaml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ builds:
1616
ldflags:
1717
- -s -w
1818
- -X go.szostok.io/version.version={{.Version}}
19-
- -X go.szostok.io/version.buildDate={{.CommitDate}}
20-
mod_timestamp: "{{.CommitTimestamp}}"
19+
- -X go.szostok.io/version.buildDate={{.Date}}
2120

2221
changelog:
2322
sort: asc
@@ -39,9 +38,6 @@ archives:
3938
{{- else }}{{ .Arch }}{{ end }}
4039
{{- if .Arm }}v{{ .Arm }}{{ end }}
4140
42-
release:
43-
disable: true # Linux runner will publish the release (including the windows binaries)
44-
4541
chocolateys:
4642
- name: azctx
4743
dependencies:
@@ -59,3 +55,42 @@ chocolateys:
5955
bug_tracker_url: "https://github.com/whiteducksoftware/azctx/issues"
6056
release_notes: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
6157
copyright: "Copyright 2024 white duck GmbH"
58+
59+
winget:
60+
- name: azctx
61+
publisher: "white duck GmbH"
62+
path: "manifests/w/whiteducksoftware/azctx/{{ .Version }}"
63+
short_description: "Faster switching between Azure Subscriptions in your Azure CLI"
64+
license: "mit"
65+
publisher_url: "https://whiteduck.de/en/"
66+
publisher_support_url: "https://whiteduck.de/en/contact/"
67+
package_identifier: whiteducksoftware.azctx
68+
url_template: "https://github.com/whiteducksoftware/azctx/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
69+
commit_author:
70+
name: "{{ .Env.GITHUB_ACTOR }}"
71+
email: "{{ .Env.GITHUB_ACTOR_ID }}+{{ .Env.GITHUB_ACTOR }}@users.noreply.github.com"
72+
commit_msg_template: "WinGet manifest update for {{ .ProjectName }} version {{ .Tag }}"
73+
homepage: "https://github.com/whiteducksoftware/azctx"
74+
license_url: "https://github.com/whiteducksoftware/azctx/blob/main/LICENSE"
75+
copyright: "Copyright 2023 white duck GmbH"
76+
skip_upload: auto
77+
release_notes: "{{.Changelog}}"
78+
release_notes_url: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
79+
tags:
80+
- azure
81+
- azure-cli
82+
dependencies:
83+
- package_identifier: Microsoft.AzureCLI
84+
minimum_version: 2.50.0
85+
repository:
86+
owner: whiteducksoftware
87+
name: winget-pkgs
88+
branch: azctx-{{ .Version }}
89+
token: "{{ .Env.AUTH_GITHUB }}"
90+
pull_request:
91+
enabled: false
92+
draft: true
93+
base:
94+
owner: microsoft
95+
name: winget-pkgs
96+
branch: master

.goreleaser.yaml

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ builds:
1010
goos:
1111
- linux
1212
- darwin
13-
- windows
1413
goarch:
1514
- amd64
1615
- arm
1716
- arm64
1817
ldflags:
1918
- -s -w
2019
- -X go.szostok.io/version.version={{.Version}}
21-
- -X go.szostok.io/version.buildDate={{.CommitDate}}
22-
mod_timestamp: "{{.CommitTimestamp}}"
20+
- -X go.szostok.io/version.buildDate={{.Date}}
2321

2422
changelog:
2523
sort: asc
@@ -40,10 +38,6 @@ archives:
4038
{{- else if eq .Arch "386" }}i386
4139
{{- else }}{{ .Arch }}{{ end }}
4240
{{- if .Arm }}v{{ .Arm }}{{ end }}
43-
# use zip for windows archives
44-
format_overrides:
45-
- goos: windows
46-
format: zip
4741
4842
brews:
4943
- name: azctx
@@ -65,42 +59,3 @@ brews:
6559
license: "MIT"
6660
install: |
6761
bin.install "azctx"
68-
69-
winget:
70-
- name: azctx
71-
publisher: "white duck GmbH"
72-
path: "manifests/w/whiteducksoftware/azctx/{{ .Version }}"
73-
short_description: "Faster switching between Azure Subscriptions in your Azure CLI"
74-
license: "mit"
75-
publisher_url: "https://whiteduck.de/en/"
76-
publisher_support_url: "https://whiteduck.de/en/contact/"
77-
package_identifier: whiteducksoftware.azctx
78-
url_template: "https://github.com/whiteducksoftware/azctx/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
79-
commit_author:
80-
name: "{{ .Env.GITHUB_ACTOR }}"
81-
email: "{{ .Env.GITHUB_ACTOR_ID }}+{{ .Env.GITHUB_ACTOR }}@users.noreply.github.com"
82-
commit_msg_template: "WinGet manifest update for {{ .ProjectName }} version {{ .Tag }}"
83-
homepage: "https://github.com/whiteducksoftware/azctx"
84-
license_url: "https://github.com/whiteducksoftware/azctx/blob/main/LICENSE"
85-
copyright: "Copyright 2023 white duck GmbH"
86-
skip_upload: auto
87-
release_notes: "{{.Changelog}}"
88-
release_notes_url: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
89-
tags:
90-
- azure
91-
- azure-cli
92-
dependencies:
93-
- package_identifier: Microsoft.AzureCLI
94-
minimum_version: 2.50.0
95-
repository:
96-
owner: whiteducksoftware
97-
name: winget-pkgs
98-
branch: azctx-{{ .Version }}
99-
token: "{{ .Env.AUTH_GITHUB }}"
100-
pull_request:
101-
enabled: false
102-
draft: true
103-
base:
104-
owner: microsoft
105-
name: winget-pkgs
106-
branch: master

0 commit comments

Comments
 (0)