feat: add support for request idempotency keys #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to NuGet | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0' | |
| - run: dotnet restore Csharp-Sdk.csproj | |
| - run: dotnet build Csharp-Sdk.csproj --configuration Release --no-restore | |
| - name: NuGet login (OIDC trusted publishing) | |
| uses: NuGet/login@v1 | |
| id: nuget-login | |
| with: | |
| user: mintdev | |
| - run: dotnet nuget push bin/Release/*.nupkg --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |