diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a2c12a..fbe3ac0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,9 @@ jobs: run: dotnet pack --no-restore -c:Release - name: Push - # Push packages into private github repository - # Push every branch + # Create package only from main branch # if: github.ref == 'refs/heads/main' + + # Create packages from every branch except pull requests + if: github.event_name == 'push' run: dotnet nuget push "../bin/Release/*.nupkg" -k ${{ secrets.PACKAGE_REGISTRY_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate