Push Single Chocolatey Package #45
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: Push Single Chocolatey Package | |
on: | |
workflow_dispatch: | |
inputs: | |
directory: | |
description: 'Supply directory' | |
required: true | |
jobs: | |
Push-Chocolatey-Packages: | |
runs-on: windows-latest | |
environment: 'Push-Packages' | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Set API key | |
env: | |
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} | |
run: choco apikey add -s="https://push.chocolatey.org/" -k="$env:CHOCOLATEY_API_KEY" | |
- name: Push packages | |
run: > | |
cd ${{ github.event.inputs.directory }}; choco pack; choco push --source https://push.chocolatey.org/ | |
shell: powershell | |