39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- test
|
|
jobs:
|
|
Build-Chocolatey-Packages:
|
|
runs-on: ubuntu-latest
|
|
container: catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: 7
|
|
- name: Chocolatey Pack
|
|
uses: docker://chocolatey/choco:latest
|
|
with:
|
|
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
|
|
env:
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
|