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
18 changes: 12 additions & 6 deletions .github/workflows/nuget-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- name: Set up .NET 9
Expand Down Expand Up @@ -58,10 +62,12 @@ jobs:

- name: Build
run: dotnet pack -c Release --output .
- name: Publish
uses: alirezanet/[email protected]

- name: NuGet login (OIDC -> temp API key)
uses: NuGet/login@v1
id: login
with:
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PROJECT_FILE_PATH: src/NRedisStack/NRedisStack.csproj
PACKAGE_NAME: NRedisStack
TAG_COMMIT: false
user: ${{ secrets.NUGET_USER }}

- name: Publish
run: dotnet nuget push ./*.nupkg --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
Loading