From 2f1b81cba0b5084c3488962c66f3a9ebcde4a3a2 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 29 Jan 2024 10:44:09 +0100 Subject: [PATCH] Release Windows packages to winget-pkgs (#1144) ## Changes This PR adds a release workflow which will automatically publish the CLI to winget-pkgs whenever a release is made. It uses https://github.com/vedantmgoyal2009/winget-releaser to release the windows binaries. @exorcism0666 has been graciously making releases on our behalf, but we can do this automatically ourselves after this PR. ## Tests --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 378fbbd6..044324ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,3 +117,14 @@ jobs: version: "${{ env.VERSION }}", } }); + + publish-to-winget-pkgs: + needs: goreleaser + runs-on: windows-latest + environment: release + steps: + - uses: vedantmgoyal2009/winget-releaser@93fd8b606a1672ec3e5c6c3bb19426be68d1a8b0 # https://github.com/vedantmgoyal2009/winget-releaser/releases/tag/v2 + with: + identifier: Databricks.DatabricksCLI + installers-regex: 'windows_.*\.zip$' # Only windows releases + token: ${{ secrets.ENG_DEV_ECOSYSTEM_BOT_TOKEN }}