2023-03-25 15:28:06 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-25 16:40:21 -04:00
|
|
|
- test
|
2023-03-25 15:28:06 -04:00
|
|
|
|
|
|
|
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"
|
2023-03-25 16:42:02 -04:00
|
|
|
echo "$PWD/$package"
|
|
|
|
ls "$PWD/$package"
|
2023-03-25 16:47:25 -04:00
|
|
|
docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco pwd
|
2023-03-25 16:40:21 -04:00
|
|
|
docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco ls
|
2023-03-25 15:28:06 -04:00
|
|
|
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 \
|
|
|
|
--source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
done
|