From 7bbad37a0acb8f42aaa3d7f2917dc47fa2dfd4f0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 25 Mar 2023 18:22:35 -0400 Subject: [PATCH] asdfasdf --- .gitea/workflows/build.yml | 25 +++++++++++++++++++++---- build-all.sh | 13 ------------- 2 files changed, 21 insertions(+), 17 deletions(-) delete mode 100755 build-all.sh diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 577e079..441eade 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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" diff --git a/build-all.sh b/build-all.sh deleted file mode 100755 index 4df3aa2..0000000 --- a/build-all.sh +++ /dev/null @@ -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