From e63d7ab12cef3768a65cfdbc384f2c77a60a60ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=B8ye=20Christensen?= Date: Tue, 13 May 2025 16:03:02 +0200 Subject: [PATCH 1/2] Update version --- src/FluentSortingDotNet/FluentSortingDotNet.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FluentSortingDotNet/FluentSortingDotNet.csproj b/src/FluentSortingDotNet/FluentSortingDotNet.csproj index 274a637..7828bae 100644 --- a/src/FluentSortingDotNet/FluentSortingDotNet.csproj +++ b/src/FluentSortingDotNet/FluentSortingDotNet.csproj @@ -9,7 +9,7 @@ FluentSorting.NET Scantalk ApS, simo026q README.md - 1.1.0 + 1.2.0-rc.1 en LICENSE.txt © 2024 simo026q From 95de9ae392a683bce0b33ca4a5aeb2fa0d7a9287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=B8ye=20Christensen?= Date: Tue, 13 May 2025 16:26:44 +0200 Subject: [PATCH 2/2] Fix NuGet CD workflow --- .github/workflows/nuget.yml | 13 +++++++++---- src/FluentSortingDotNet/FluentSortingDotNet.csproj | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 58d025c..eddc86d 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -18,14 +18,19 @@ jobs: with: dotnet-version: '9.0.x' # adjust based on your project + - name: Extract version from tag + id: vars + run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + shell: bash + - name: Restore dependencies - run: dotnet restore + run: dotnet restore src/FluentSortingDotNet - name: Build project - run: dotnet build --configuration Release --no-restore + run: dotnet build src/FluentSortingDotNet --configuration Release --no-restore - name: Pack NuGet package - run: dotnet pack --configuration Release --no-build --output ./nupkg + run: dotnet pack src/FluentSortingDotNet --configuration Release --no-build --output ./nupkg /p:PackageVersion=${{ steps.vars.outputs.version }} - name: Push package to NuGet - run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} + run: dotnet nuget push "./nupkg/FluentSortingDotNet.${{ steps.vars.outputs.version }}.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} diff --git a/src/FluentSortingDotNet/FluentSortingDotNet.csproj b/src/FluentSortingDotNet/FluentSortingDotNet.csproj index 7828bae..5965592 100644 --- a/src/FluentSortingDotNet/FluentSortingDotNet.csproj +++ b/src/FluentSortingDotNet/FluentSortingDotNet.csproj @@ -9,7 +9,7 @@ FluentSorting.NET Scantalk ApS, simo026q README.md - 1.2.0-rc.1 + 0.0.0-dev en LICENSE.txt © 2024 simo026q