Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: goreleaser config change #25

Merged
merged 1 commit into from
Dec 19, 2024
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
45 changes: 40 additions & 5 deletions .goreleaser-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ builds:
ldflags:
- -s -w
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.CommitDate}}
mod_timestamp: "{{.CommitTimestamp}}"
- -X go.szostok.io/version.buildDate={{.Date}}

changelog:
sort: asc
Expand All @@ -39,9 +38,6 @@ archives:
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}

release:
disable: true # Linux runner will publish the release (including the windows binaries)

chocolateys:
- name: azctx
dependencies:
Expand All @@ -59,3 +55,42 @@ chocolateys:
bug_tracker_url: "https://github.com/whiteducksoftware/azctx/issues"
release_notes: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
copyright: "Copyright 2024 white duck GmbH"

winget:
- name: azctx
publisher: "white duck GmbH"
path: "manifests/w/whiteducksoftware/azctx/{{ .Version }}"
short_description: "Faster switching between Azure Subscriptions in your Azure CLI"
license: "mit"
publisher_url: "https://whiteduck.de/en/"
publisher_support_url: "https://whiteduck.de/en/contact/"
package_identifier: whiteducksoftware.azctx
url_template: "https://github.com/whiteducksoftware/azctx/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: "{{ .Env.GITHUB_ACTOR }}"
email: "{{ .Env.GITHUB_ACTOR_ID }}+{{ .Env.GITHUB_ACTOR }}@users.noreply.github.com"
commit_msg_template: "WinGet manifest update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/whiteducksoftware/azctx"
license_url: "https://github.com/whiteducksoftware/azctx/blob/main/LICENSE"
copyright: "Copyright 2023 white duck GmbH"
skip_upload: auto
release_notes: "{{.Changelog}}"
release_notes_url: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
tags:
- azure
- azure-cli
dependencies:
- package_identifier: Microsoft.AzureCLI
minimum_version: 2.50.0
repository:
owner: whiteducksoftware
name: winget-pkgs
branch: azctx-{{ .Version }}
token: "{{ .Env.AUTH_GITHUB }}"
pull_request:
enabled: false
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master
47 changes: 1 addition & 46 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ builds:
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
ldflags:
- -s -w
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.CommitDate}}
mod_timestamp: "{{.CommitTimestamp}}"
- -X go.szostok.io/version.buildDate={{.Date}}

changelog:
sort: asc
Expand All @@ -40,10 +38,6 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

brews:
- name: azctx
Expand All @@ -65,42 +59,3 @@ brews:
license: "MIT"
install: |
bin.install "azctx"

winget:
- name: azctx
publisher: "white duck GmbH"
path: "manifests/w/whiteducksoftware/azctx/{{ .Version }}"
short_description: "Faster switching between Azure Subscriptions in your Azure CLI"
license: "mit"
publisher_url: "https://whiteduck.de/en/"
publisher_support_url: "https://whiteduck.de/en/contact/"
package_identifier: whiteducksoftware.azctx
url_template: "https://github.com/whiteducksoftware/azctx/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: "{{ .Env.GITHUB_ACTOR }}"
email: "{{ .Env.GITHUB_ACTOR_ID }}+{{ .Env.GITHUB_ACTOR }}@users.noreply.github.com"
commit_msg_template: "WinGet manifest update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/whiteducksoftware/azctx"
license_url: "https://github.com/whiteducksoftware/azctx/blob/main/LICENSE"
copyright: "Copyright 2023 white duck GmbH"
skip_upload: auto
release_notes: "{{.Changelog}}"
release_notes_url: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
tags:
- azure
- azure-cli
dependencies:
- package_identifier: Microsoft.AzureCLI
minimum_version: 2.50.0
repository:
owner: whiteducksoftware
name: winget-pkgs
branch: azctx-{{ .Version }}
token: "{{ .Env.AUTH_GITHUB }}"
pull_request:
enabled: false
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master