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
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,29 @@ jobs:
name: nupkg
path: artifacts/*

publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
Comment thread
ericstj marked this conversation as resolved.
steps:
- name: Download package artifacts
uses: actions/download-artifact@v8
with:
name: nupkg
path: artifacts

Comment thread
ericstj marked this conversation as resolved.
- name: NuGet login
uses: NuGet/login@v1
id: login
with:
user: ericstj

- name: Publish to NuGet.org
if: startsWith(github.ref, 'refs/tags/v')
run: >
dotnet nuget push "artifacts/*.nupkg"
--api-key "${{ secrets.NUGET_API_KEY }}"
--api-key "${{ steps.login.outputs.NUGET_API_KEY }}"
--source https://api.nuget.org/v3/index.json
--skip-duplicate