Skip to content

Commit

Permalink
Move winget publishing to linux as windows creates weird issues
Browse files Browse the repository at this point in the history
  • Loading branch information
StiviiK committed Sep 14, 2023
1 parent 2580a56 commit 27f4d1e
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 64 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUTH_GITHUB: ${{ secrets.AUTH_GITHUB }}
goreleaser-windows:
name: goreleaser-windows
runs-on: windows-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --clean --config .goreleaser-windows.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUTH_GITHUB: ${{ secrets.AUTH_GITHUB }}
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
# goreleaser-windows:
# name: goreleaser-windows
# runs-on: windows-latest
# steps:
# -
# name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# -
# name: Fetch all tags
# run: git fetch --force --tags
# -
# name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: 'stable'
# -
# name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v2
# with:
# distribution: goreleaser
# version: latest
# args: release --clean --config .goreleaser-windows.yaml
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# AUTH_GITHUB: ${{ secrets.AUTH_GITHUB }}
# CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
36 changes: 0 additions & 36 deletions .goreleaser-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,39 +52,3 @@ archives:
# bug_tracker_url: "https://github.com/whiteducksoftware/azctx/issues"
# release_notes: "https://github.com/whiteducksoftware/azctx/releases/tag/{{ .Tag }}"
# copyright: "Copyright 2023 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
repository:
owner: whiteducksoftware
name: winget-pkgs
branch: azctx-{{ .Version }}
token: "{{ .Env.AUTH_GITHUB }}"
pull_request:
enabled: true
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master
37 changes: 37 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ builds:
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
Expand Down Expand Up @@ -55,3 +56,39 @@ 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
repository:
owner: whiteducksoftware
name: winget-pkgs
branch: azctx-{{ .Version }}
token: "{{ .Env.AUTH_GITHUB }}"
pull_request:
enabled: true
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master

0 comments on commit 27f4d1e

Please sign in to comment.