parent
461737bda3
commit
7bbad37a0a
@ -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 }}
|
|
||||||
|
|
||||||
|
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