on: push: branches: - main - test env: NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json jobs: Build-Chocolatey-Packages: runs-on: ubuntu-latest container: catthehacker/ubuntu:act-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Chocolatey Pack run: | for package in */ do echo "Packing $package" echo "$PWD/$package" ls "$PWD/$package" docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco pwd docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco ls docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco choco pack docker run --rm --volume="$PWD/$package:/build" --workdir=/build chocolatey/choco choco push \ --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" done