Skip to content

Pack and Push Chocolatey Package #1

Pack and Push Chocolatey Package

Pack and Push Chocolatey Package #1

Workflow file for this run

name: Pack and Push Chocolatey Package
on:
workflow_dispatch:
inputs:
version:
description: "The version of the package"
required: true
type: string
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHOCO_TOKEN: ${{ secrets.CHOCO_TOKEN }}
jobs:
pack-and-push:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Check choco
run: |
choco -v
- name: Run packChoco.py script
run: |
$env:PYTHONUNBUFFERED = "1"
python scripts/packChoco.py --version ${{ github.event.inputs.version }} --githubtoken ${{ env.GITHUB_TOKEN }} --chocotoken ${{ env.CHOCO_TOKEN }}