diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 2de4a0a..b4be5d0 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -18,16 +18,21 @@ jobs: with: dotnet-version: 8.0.* include-prerelease: true + - name: Package + run: dotnet pack -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 + # Publish - - name: publish on version change - id: publish_nuget - uses: brandedoutcast/publish-nuget@v2 - with: - # Filepath of the project to be packaged, relative to root of repository - PROJECT_FILE_PATH: src/OpenTask.Core/OpenTask.Core.csproj - VERSION_STATIC: ${{ github.ref }} + # - name: publish on version change + # id: publish_nuget + # uses: brandedoutcast/publish-nuget@v2 + # with: + # # Filepath of the project to be packaged, relative to root of repository + # PROJECT_FILE_PATH: src/OpenTask.Core/OpenTask.Core.csproj + # VERSION_STATIC: ${{ github.ref }} - NUGET_KEY: ${{secrets.NUGET_API_KEY}} + # NUGET_KEY: ${{secrets.NUGET_API_KEY}} # Configuration to build and package # BUILD_CONFIGURATION: Release