Skip to content

Commit

Permalink
Merge pull request #4 from Peymanpn/3-update-workflow
Browse files Browse the repository at this point in the history
Now publishes artifacts on main only
  • Loading branch information
Peymanpn authored Apr 27, 2023
2 parents 7c807e1 + 3deacd0 commit 56103d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
dotnet pack -v n --no-build --no-restore --output ./artifacts/ src/Pdsr.Http.Extensions
- name: Upload package artifacts
uses: actions/upload-artifact@v2
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
with:
name: nuget-packages
path: |
**/*.nupkg
**/*.snupkg
- name: Publish packages
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit 56103d4

Please sign in to comment.