Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ jobs:
with:
name: nuget-packages
path: ${{ github.workspace }}/artifacts

- name: List artifacts
run: ls -la ${{ github.workspace }}/artifacts/

- name: Publish to NuGet.org
run: dotnet nuget push "${{ github.workspace }}/artifacts/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{ github.workspace }}/artifacts
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

publish-github:
name: Publish to GitHub Packages
Expand All @@ -89,6 +93,10 @@ jobs:
with:
name: nuget-packages
path: ${{ github.workspace }}/artifacts

- name: List artifacts
run: ls -la ${{ github.workspace }}/artifacts/

- name: Publish to GitHub Packages
run: dotnet nuget push "${{ github.workspace }}/artifacts/*.nupkg" --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
working-directory: ${{ github.workspace }}/artifacts
run: dotnet nuget push "**/*.nupkg" --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate