asdfasdf
Some checks failed
Build-Chocolatey-Packages

This commit is contained in:
Adam Goldsmith 2023-03-25 18:22:35 -04:00
parent 461737bda3
commit 7bbad37a0a
2 changed files with 21 additions and 17 deletions

View File

@ -11,11 +11,28 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Chocolatey Pack - name: Chocolatey Pack
uses: docker://chocolatey/choco:latest uses: docker://chocolatey/choco:latest
with: with:
args: ./build-all.sh 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: env:
NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/ DOTNET_CLI_TELEMETRY_OPTOUT: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,13 +0,0 @@
#!/bin/sh
set -e
for package in */
do
(
cd "$package"
echo "Packing $package"
choco pack
choco push --source "$NUGET_URL" --key "$GITHUB_TOKEN"
)
done