Skip to content

Commit 31794b7

Browse files
authored
Merge pull request #192 from TraGicCode/chore/update-github-actions-to-install-dotnet-sdk-on-agent
Fix latest .net sdk version missing issue
2 parents b84b2b6 + ad19649 commit 31794b7

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/dotnet_selfcontained.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v6
1717

18+
- name: Setup .NET SDK
19+
uses: actions/setup-dotnet@v5
20+
with:
21+
# Use the .NET SDK from global.json in the root of the repository.
22+
global-json-file: global.json
23+
1824
- name: Extract version (without v)
1925
id: version
2026
run: |

.github/workflows/dotnet_tool_deploy.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v6
1414

15+
- name: Setup .NET SDK
16+
uses: actions/setup-dotnet@v5
17+
with:
18+
# Use the .NET SDK from global.json in the root of the repository.
19+
global-json-file: global.json
20+
1521
- name: Extract version (without v)
1622
id: version
1723
run: |
@@ -28,10 +34,7 @@ jobs:
2834
echo "Syncing version: $VERSION"
2935
3036
- name: Build and Pack as .NET tool
31-
uses: devcontainers/ci@v0.3
32-
with:
33-
runCmd: |
34-
dotnet cake --target Pack-DotNetTool --package-version ${{ steps.version.outputs.version }}
37+
run: dotnet cake --target Pack-DotNetTool --package-version ${{ steps.version.outputs.version }}
3538

36-
- name: Publish to NuGet (optional)
39+
- name: Publish to NuGet
3740
run: dotnet nuget push ./artifacts/nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)