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: chocolatey/choco steps: - name: Checkout uses: actions/checkout@v3 - name: Chocolatey Pack run: | for package in */ do ( cd "$package" echo "Packing $package" choco pack choco push --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" ) done