Skip to content

v2.5.8: revert CosmoKvConnection RW lock — keep Executor AsyncLocal #112

v2.5.8: revert CosmoKvConnection RW lock — keep Executor AsyncLocal

v2.5.8: revert CosmoKvConnection RW lock — keep Executor AsyncLocal #112

Workflow file for this run

name: Publish to NuGet
on:
push:
tags:
- 'v*.*.*'
jobs:
publish:
name: Pack & Push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
# Strip leading 'v' from tag (v1.1.0 → 1.1.0)
- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Pack
run: |
dotnet pack src/CosmoSQLClient.Core/CosmoSQLClient.Core.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.MsSql/CosmoSQLClient.MsSql.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.MsSql.EntityFrameworkCore/CosmoSQLClient.MsSql.EntityFrameworkCore.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.Postgres/CosmoSQLClient.Postgres.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.Postgres.EntityFrameworkCore/CosmoSQLClient.Postgres.EntityFrameworkCore.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.MySql/CosmoSQLClient.MySql.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.MySql.EntityFrameworkCore/CosmoSQLClient.MySql.EntityFrameworkCore.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.Sqlite/CosmoSQLClient.Sqlite.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.Sqlite.EntityFrameworkCore/CosmoSQLClient.Sqlite.EntityFrameworkCore.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.CosmoKv/CosmoSQLClient.CosmoKv.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.CosmoKvHttp/CosmoSQLClient.CosmoKvHttp.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
dotnet pack src/CosmoSQLClient.CosmoKv.Cli/CosmoSQLClient.CosmoKv.Cli.csproj \
-c Release \
-p:Version=${{ steps.version.outputs.VERSION }} \
-o ./nupkgs
ls -la ./nupkgs
- name: Push to NuGet
run: |
dotnet nuget push ./nupkgs/*.nupkg \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json \
--skip-duplicate