From c20ac7b1d63644d926dc3c8d8ebe1b4b63d0b224 Mon Sep 17 00:00:00 2001 From: Stephen Johnson Date: Mon, 5 Feb 2024 12:02:14 -0600 Subject: [PATCH] Added pushing to nuget only on master. --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index dadbf87..3c5a5c5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -25,11 +25,11 @@ jobs: working-directory: ./Src/CommandLine run: dotnet build CommandLine.sln /p:Configuration=Release /p:Platform=x64 - name: Pack Nuget Package - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-latest' && (github.ref_name == 'master') }} working-directory: ./Src/CommandLine run: dotnet pack CommandLine.csproj -c Release -p:PackageVersion="1.0.${{ github.run_number }}" /p:Platform=x64 - name: Publish Nuget Package - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ (matrix.os == 'ubuntu-latest') && (github.ref_name == 'master') }} working-directory: ./nupkg run: dotnet nuget push VUISIS.Formula.x64.1.0.${{ github.run_number }}.nupkg --api-key ${{ secrets.BUILD_SECRET }} --source https://api.nuget.org/v3/index.json --skip-duplicate - name: Copy to Liblibz3 MacOS