Skip to content

Commit

Permalink
Create private github packages from every branch except pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandini committed Nov 7, 2023
1 parent 6019788 commit 3879396
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3879396

Please sign in to comment.