Rename Extensions to RxExtensions, clarify FromEventBuffered's buffer… #4
Workflow file for this run
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: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - v* | |
| env: | |
| DOTNET_VERSION: '10.0.x' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # required to request the GitHub OIDC token for NuGet Trusted Publishing | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build src/RxSharp/RxSharp.csproj --configuration Release --no-restore | |
| # Trusted Publishing (https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing): exchanges a | |
| # short-lived GitHub OIDC token for a temporary NuGet API key, valid 1 hour, instead of storing a long-lived | |
| # API key as a repo secret. Requires a Trusted Publishing policy configured on nuget.org for this exact repo | |
| # + workflow file (see CLAUDE.md for the one-time setup steps). | |
| - name: NuGet login (OIDC -> temp API key) | |
| uses: NuGet/login@v1 | |
| id: nuget-login | |
| with: | |
| user: ${{ secrets.NUGET_USER }} | |
| - name: Push to nuget.org | |
| run: dotnet nuget push ./src/RxSharp/bin/Release/*.nupkg --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |