Remove CustomSynchronizationContext and use Task.Run for sync over as… #365
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: Build and deploy | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'yarn.lock' | |
| - 'package.json' | |
| - '**/*.md' | |
| branches: | |
| - dev | |
| tags: | |
| - '*' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| nuget: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v6 | |
| - | |
| name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - | |
| name: Unshallow | |
| run: git fetch --prune --unshallow | |
| - | |
| name: NuGet login | |
| uses: NuGet/login@v1 | |
| id: nuget-login | |
| with: | |
| user: ${{ secrets.NUGET_USER }} | |
| - | |
| name: Create and push NuGet package | |
| run: | | |
| dotnet pack -c Release -o nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | |
| dotnet nuget push **/*.nupkg --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |