Test
Some checks failed
Build-Chocolatey-Packages

This commit is contained in:
Adam Goldsmith 2023-03-25 16:40:21 -04:00
parent 7a260f2314
commit 1c6fb7bac1

View File

@ -2,6 +2,7 @@ on:
push: push:
branches: branches:
- main - main
- test
env: env:
NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json
@ -19,6 +20,7 @@ jobs:
for package in */ for package in */
do do
echo "Packing $package" echo "Packing $package"
docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco ls
docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco choco pack docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco choco pack
docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco choco push \ docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco choco push \
--source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}"