diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..5f74ad0 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,25 @@ +--- +name: ci + +on: + push: + branches: + - main + workflow_dispatch: { } + +jobs: + push: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Pack + uses: crazy-max/ghaction-chocolatey@v3 + with: + args: pack + - name: Push + uses: crazy-max/ghaction-chocolatey@v3 + env: + CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} + with: + args: push --source "'https://push.chocolatey.org/'" -k="'${env:CHOCOLATEY_API_KEY}'"