Skip to content

Commit

Permalink
Publish to chocolately when building master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Jan 11, 2024
1 parent 86e04ba commit a15c3f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '*'

env:
VERSION: 1.3.${{ github.run_number }}
VERSION: 1.3.4.${{ github.run_number }}-alpha

jobs:
build:
Expand Down Expand Up @@ -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/

0 comments on commit a15c3f0

Please sign in to comment.