From 2b7df6aad9ffd88bf83304487a1eb3c91ccc4d8c Mon Sep 17 00:00:00 2001 From: Vinnie Fialok Date: Fri, 5 Jul 2024 09:37:57 +1000 Subject: [PATCH] testing pushing to nuget --- .github/workflows/release.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2827790e..6d1ec1fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,11 +40,9 @@ jobs: - name: Pack Blazor.Diagrams working-directory: src/Blazor.Diagrams - run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.NUGET_DIR }}' - - - name: Push - run: >- - for i in $(find ${{ env.NUGET_DIR }} -type f -name "*.nupkg"); - do - echo "File: ${i} \n"; - done + run: 'dotnet pack --no-restore --no-build -p:GeneratePackageOnBuild=false --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.NUGET_DIR }}' + + - name: Push NuGet Package to NuGet Gallery + run: | + nuget setapikey ${{ secrets.NUGET_API_KEY }} + nuget push bin/WTG.Analyzers.${{ steps.version.outputs.version-without-v }}.nupkg -Source https://api.nuget.org/v3/index.json