Skip to content

Chocolatey Release

Chocolatey Release #44

name: Chocolatey Release
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types:
- completed
jobs:
publish-chocolatey:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Running integration tests
shell: pwsh
env:
API_KEY: ${{ secrets.CHOCO_KEY }}
run: |
# install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# publish chocolatey package
./scripts/chocolatey/package.ps1
exit $LastExitCode