Skip to content

Push Single Chocolatey Package #45

Push Single Chocolatey Package

Push Single Chocolatey Package #45

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