From f9cdba43f6279014fa2240b3d56b88cf929cf7b9 Mon Sep 17 00:00:00 2001 From: "Gui.H" Date: Sun, 14 Jul 2024 17:48:45 +0800 Subject: [PATCH] Update nuget.yml --- .github/workflows/nuget.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index b4be5d0..65e772a 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -2,8 +2,8 @@ name: publish nuget on: push: - tags: - - '*' + branches: + - master jobs: publish: @@ -19,7 +19,7 @@ jobs: dotnet-version: 8.0.* include-prerelease: true - name: Package - run: dotnet pack -c Release -o . src/OpenTask.Core/OpenTask.Core.csproj + run: dotnet build -c Release -o . src/OpenTask.Core/OpenTask.Core.csproj - name: Publish run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json