From 2d816f9ae78f174c219c0c26ca65443e5d5bbdaf Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 14 Jul 2023 17:45:53 +0200 Subject: [PATCH] feat: Switch to goreleaser for generating Winget packages --- .github/workflows/winget.yml | 14 -------------- .goreleaser.yaml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/winget.yml diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml deleted file mode 100644 index 0c0ce579b6f..00000000000 --- a/.github/workflows/winget.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Publish to Winget -on: - release: - types: [released] - -jobs: - publish: - runs-on: windows-latest # Action can only run on Windows - steps: - - uses: vedantmgoyal2009/winget-releaser@v2 - with: - identifier: twpayne.chezmoi - installers-regex: '_windows_\w+\.zip$' - token: ${{ secrets.WINGET_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bf8b0c889e2..b2b90eb6d06 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -244,3 +244,38 @@ source: prefix_template: '{{ .ProjectName }}-{{ .Version }}/' files: - COMMIT + +winget: +- name: chezmoi + publisher: twpayne + publisher_url: https://github.com/twpayne + short_description: Manage your dotfiles across multiple diverse machines, securely. + license: MIT + commit_author: + name: Tom Payne + email: twpayne@gmail.com + homepage: https://chezmoi.io + license_url: https://github.com/twpayne/chezmoi/blob/master/LICENSE + copyright: Copyright (c) 2018-2023 Tom Payne + release_notes: '{{ .Changelog }}' + release_notes_url: 'https://github.com/twpayne/chezmoi/releases/tag/{{ .Tag }}' + tags: + - cli + - configuration + - dotbot + - dotfile + - dotfiles + - stow + - yadm + author: Tom Payne + publisher_support_url: https://github.com/twpayne/chezmoi/issues + repository: + owner: twpayne + name: winget-pkgs + token: ${{ secrets.WINGET_TOKEN }} + pull_request: + enabled: true + base: + owner: microsoft + name: winget-pkgs + branch: master