Skip to content

Commit

Permalink
Merge pull request #25 from whiteducksoftware/feat/goreleaser-update-3
Browse files Browse the repository at this point in the history
feat: goreleaser config change
  • Loading branch information
hutstep authored Dec 19, 2024
2 parents 0b74dd1 + 02b8e52 commit 24ff729
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 51 deletions.
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

0 comments on commit 24ff729

Please sign in to comment.