From ad196495d8ea022b7e9e0a69681dbe01a676bf78 Mon Sep 17 00:00:00 2001 From: Michael Fyffe <6224270+TraGicCode@users.noreply.github.com> Date: Fri, 23 Jan 2026 08:21:02 -0600 Subject: [PATCH] Fix latest .net sdk version missing issue --- .github/workflows/dotnet_selfcontained.yml | 6 ++++++ .github/workflows/dotnet_tool_deploy.yml | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet_selfcontained.yml b/.github/workflows/dotnet_selfcontained.yml index fe20237..c6dc9e2 100644 --- a/.github/workflows/dotnet_selfcontained.yml +++ b/.github/workflows/dotnet_selfcontained.yml @@ -15,6 +15,12 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v5 + with: + # Use the .NET SDK from global.json in the root of the repository. + global-json-file: global.json + - name: Extract version (without v) id: version run: | diff --git a/.github/workflows/dotnet_tool_deploy.yml b/.github/workflows/dotnet_tool_deploy.yml index fdc2868..bb1f3be 100644 --- a/.github/workflows/dotnet_tool_deploy.yml +++ b/.github/workflows/dotnet_tool_deploy.yml @@ -12,6 +12,12 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v5 + with: + # Use the .NET SDK from global.json in the root of the repository. + global-json-file: global.json + - name: Extract version (without v) id: version run: | @@ -28,10 +34,7 @@ jobs: echo "Syncing version: $VERSION" - name: Build and Pack as .NET tool - uses: devcontainers/ci@v0.3 - with: - runCmd: | - dotnet cake --target Pack-DotNetTool --package-version ${{ steps.version.outputs.version }} + run: dotnet cake --target Pack-DotNetTool --package-version ${{ steps.version.outputs.version }} - - name: Publish to NuGet (optional) + - name: Publish to NuGet run: dotnet nuget push ./artifacts/nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}