parent
461737bda3
commit
7bbad37a0a
@ -11,11 +11,28 @@ jobs:
|
||||
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: ./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:
|
||||
NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
|
||||
|
13
build-all.sh
13
build-all.sh
@ -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
|
Loading…
Reference in New Issue
Block a user