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
|
|
|
jobs:
|
|
|
|
Build-Chocolatey-Packages:
|
|
|
|
runs-on: ubuntu-latest
|
2023-03-25 17:08:05 -04:00
|
|
|
container: catthehacker/ubuntu:act-latest
|
2023-03-25 15:28:06 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-03-25 18:22:35 -04:00
|
|
|
- name: Setup dotnet
|
2023-03-25 18:24:04 -04:00
|
|
|
uses: https://github.com/actions/setup-dotnet@v3
|
2023-03-25 18:22:35 -04:00
|
|
|
with:
|
|
|
|
dotnet-version: 7
|
2023-03-25 15:28:06 -04:00
|
|
|
- name: Chocolatey Pack
|
2023-03-25 17:08:05 -04:00
|
|
|
uses: docker://chocolatey/choco:latest
|
|
|
|
with:
|
2023-03-25 18:22:35 -04:00
|
|
|
args: |
|
|
|
|
sh -c 'for package in */
|
|
|
|
do
|
|
|
|
(
|
|
|
|
cd "$package"
|
|
|
|
echo "Packing $package"
|
|
|
|
choco pack --no-color
|
|
|
|
)
|
|
|
|
done'
|
|
|
|
- name: Nuget Push
|
|
|
|
run: |
|
|
|
|
for package in */*.nupkg
|
|
|
|
do
|
|
|
|
echo "Pushing $package"
|
|
|
|
dotnet nuget push --source "https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json" --api-key "${{ secrets.GITHUB_TOKEN }}" "$package" --skip-duplicate
|
|
|
|
done
|
2023-03-25 17:08:05 -04:00
|
|
|
env:
|
2023-03-25 18:22:35 -04:00
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
|