Chocolatey Publish Pulsar Package #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chocolatey Publish Pulsar Package | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Latest Code | |
uses: actions/checkout@v3 | |
- name: Build Package | |
run: | | |
cd ./pulsar | |
choco pack | |
- name: Publish New Version | |
run: | | |
$fileName = ( Get-ChildItem -Path ./pulsar -Filter pulsar.*.nupkg ) | |
Write-Host "Publishing $fileName to Chocolatey" | |
choco push $fileName --source https://push.chocolatey.org --api-key ${{ secrets.CHOCO_API_KEY }} |