diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5a5ed8b..7295c56 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ on: jobs: - build: + publish: runs-on: windows-latest @@ -40,10 +40,10 @@ jobs: - name: Create NuGet package run: dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs - # # Publish to NuGet.org - # - name: Push to NuGet - # if: github.event_name == 'push' && github.ref == 'refs/heads/main' - # run: nuget push nupkgs\*.nupkg -source 'https://api.nuget.org/v3/index.json' -apikey ${{ secrets.NUGET_API_KEY }} + # Publish to NuGet.org + - name: Push to NuGet + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: nuget push nupkgs\*.nupkg -source 'https://api.nuget.org/v3/index.json' -apikey ${{ secrets.NUGET_API_KEY }} # Get package version - name: Get Package Version