Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/dotnet_selfcontained.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/dotnet_tool_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}