From f03e474fbcb7f7f588664348dd23000b7bcc60ca Mon Sep 17 00:00:00 2001 From: Erik Ejlskov Jensen Date: Sun, 2 Feb 2025 10:29:07 +0100 Subject: [PATCH] Update pipeline --- .github/workflows/dotnet.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2a4af98..5880140 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -34,7 +34,7 @@ jobs: run: dotnet publish ./src/SQLQueryStress/SqlQueryStress.csproj --configuration Release --output .\src\SQLQueryStress\bin\Publish\net8.0-windows\ --self-contained true - name: zip app - run: 7z a SqlQueryStress-0.9.8.${{ env.VERSION }}.zip .\src\SQLQueryStress\bin\Publish\net8.0-windows\*.exe + run: 7z a SqlQueryStress-0.9.8.${{ github.run_number }}.zip .\src\SQLQueryStress\bin\Publish\net8.0-windows\*.exe - name: Publish artifacts uses: actions/upload-artifact@v4 @@ -49,7 +49,7 @@ jobs: path: | **\\*.nupkg - # - name: Publish NuGet - # if: startsWith(github.ref, 'refs/heads/master') && github.repository_owner == 'ErikEJ' - # run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET }} --skip-duplicate + - name: Publish NuGet + if: startsWith(github.ref, 'refs/heads/master') && github.repository_owner == 'ErikEJ' + run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET }} --skip-duplicate \ No newline at end of file