diff --git a/.github/workflows/dotnet-nuget.yml b/.github/workflows/dotnet-nuget.yml index 35e8fab..9c3d1a1 100644 --- a/.github/workflows/dotnet-nuget.yml +++ b/.github/workflows/dotnet-nuget.yml @@ -15,6 +15,7 @@ jobs: Solution_Name: Source\StaX.Domain.sln Wap_Project_Packages: Source\Packages\*.nupkg Wap_Project_Path: Source\StaX.Domain\StaX.Domain.csproj + Nuget_Api_Key: ${{ secrets.NUGET_API_KEY }} steps: - name: Checkout code @@ -29,4 +30,4 @@ jobs: run: dotnet build $env:Solution_Name --configuration Release - name: Publish NuGet package - run: dotnet nuget push $env:Wap_Project_Packages --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push $env:Wap_Project_Packages --api-key $env:Nuget_Api_Key --source https://api.nuget.org/v3/index.json