From 02b8e529b7181eeadf76c34808842308eb484509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20H=C3=BCttner?= Date: Thu, 19 Dec 2024 21:26:12 +0100 Subject: [PATCH] feat: goreleaser config change --- .goreleaser-windows.yaml | 45 +++++++++++++++++++++++++++++++++----- .goreleaser.yaml | 47 +--------------------------------------- 2 files changed, 41 insertions(+), 51 deletions(-) diff --git a/.goreleaser-windows.yaml b/.goreleaser-windows.yaml index fbced21..d62aa5c 100644 --- a/.goreleaser-windows.yaml +++ b/.goreleaser-windows.yaml @@ -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 @@ -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: @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7e9ae63..43ce2d7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -10,7 +10,6 @@ builds: goos: - linux - darwin - - windows goarch: - amd64 - arm @@ -18,8 +17,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 @@ -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 @@ -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