From a15c3f0980c2d3588f5857b488394032839f9146 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Thu, 11 Jan 2024 12:40:33 +0100 Subject: [PATCH] Publish to chocolately when building master branch --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cddd2e..fe8015c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ on: - '*' env: - VERSION: 1.3.${{ github.run_number }} + VERSION: 1.3.4.${{ github.run_number }}-alpha jobs: build: @@ -71,3 +71,9 @@ jobs: with: name: ChocolatelyPackage path: Source\ChocolatelyPackages\sqlcequery.${{ env.VERSION }}.nupkg + + - name: Upload Chocolately Package asset + if: github.ref == 'refs/heads/master' + run: | + choco apikey --key ${{ secrets.CHOCOLATEY_API_KEY }} --source https://push.chocolatey.org/ + choco push Source\ChocolatelyPackages\sqlcequery.${{ env.VERSION }}.nupkg --source https://push.chocolatey.org/