From ed61c3c6c850f7864c047feb040604015665f5b6 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Fri, 17 Nov 2023 22:34:48 +0900 Subject: [PATCH] chore: release aqua to winget --- .github/workflows/release.yaml | 1 + .goreleaser.yml | 128 +++++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 377f3078a..33c2735a6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,6 +15,7 @@ jobs: secrets: gh_app_id: ${{secrets.APP_ID}} gh_app_private_key: ${{secrets.APP_PRIVATE_KEY}} + winget_github_token: ${{secrets.WINGET_GITHUB_TOKEN}} permissions: contents: write id-token: write diff --git a/.goreleaser.yml b/.goreleaser.yml index 678cd62ff..8be27f2e5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -90,3 +90,131 @@ scoops: owner: aquaproj name: scoop-bucket token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + +winget: + - publisher: aquaproj + short_description: Declarative CLI Version manager written in Go + license: mit + + # Publisher URL. + # + # Templates: allowed + # publisher_url: https://goreleaser.com + + publisher_support_url: https://github.com/aquaproj/aqua/discussions + + # GOAMD64 to specify which amd64 version to use if there are multiple + # versions from the build section. + # + # Default: v1 + # goamd64: v1 + + # URL which is determined by the given Token (github, gitlab or gitea). + # + # Default depends on the client. + # Templates: allowed + url_template: "https://github.com/aquaproj/aqua/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + + # Git author used to commit to the repository. + # commit_author: + # name: Shunsuke Suzuki + # email: suzuki.shunsuke.1989@gmail.com + + # The project name and current git tag are used in the format string. + # + # Templates: allowed + # commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}" + + # Path for the file inside the repository. + # + # Default: manifests/// + # path: manifests/g/goreleaser/1.19 + + homepage: https://github.com/aquaproj/aqua + + # Your app's long description. + # + # Templates: allowed + description: | + Declarative CLI Version manager written in Go. + Support Lazy Install, Registry, and continuous update by Renovate. + CLI version is switched seamlessly + + # License URL. + # + # Templates: allowed + license_url: https://github.com/aquaproj/aqua/blob/main/LICENSE + + # Copyright. + # + # Templates: allowed + # copyright: "" + + # Copyright URL. + # + # Templates: allowed + # copyright_url: "" + + # Setting this will prevent goreleaser to actually try to commit the updated + # package - instead, it will be stored on the dist folder only, + # leaving the responsibility of publishing it to the user. + # + # If set to auto, the release will not be uploaded to the repository + # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1 + # + # Templates: allowed + skip_upload: "auto" + + # Release notes. + # + # If you want to use the release notes generated by GoReleaser, use + # `{{.Changelog}}` as the value. + # + # Templates: allowed + # release_notes: "{{.Changelog}}" + + # Release notes URL. + # + # Templates: allowed + release_notes_url: https://github.com/aquaproj/aqua/releases/tag/{{.Tag}} + + # Tags. + # tags: + # - + + # Repository to push the generated files to. + repository: + owner: suzuki-shunsuke + # owner: mini-core + name: winget-pkgs + + token: "{{ .Env.WINGET_GITHUB_TOKEN }}" + + # Optionally a branch can be provided. + # + # Default: default repository branch + # Templates: allowed + branch: "aqua-{{.Version}}" + + # Sets up pull request creation instead of just pushing to the given branch. + # Make sure the 'branch' property is different from base before enabling + # it. + # + # Since: v1.17 + pull_request: + # Whether to enable it or not. + enabled: true + + # Whether to open the PR as a draft or not. + # + # Since: v1.19 + draft: true + + # Base can also be another repository, in which case the owner and name + # above will be used as HEAD, allowing cross-repository pull requests. + # + # Since: v1.19 + base: + owner: microsoft + # owner: mini-core + name: winget-pkgs