Skip to content

Commit 7e2b209

Browse files
committed
build: explicitly pass version and conf args to pack-tool.sh
Explicitly pass the version and build configuration to the dotnet tool packaging script. Also revert to a default Debug config for local builds; this is consistent with all other artifacts in the build for dev (macOS pkg, Windows installers, deb, etc)
1 parent fb52269 commit 7e2b209

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,9 @@ jobs:
620620

621621
- name: Package tool
622622
run: |
623-
src/shared/DotnetTool/pack-tool.sh
623+
src/shared/DotnetTool/pack-tool.sh \
624+
--version=$GitBuildVersionSimple \
625+
--configuration=Release
624626
625627
- name: Publish tool
626628
run: |

src/shared/DotnetTool/pack-tool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ esac
3838
done
3939

4040
if [ -z "$VERSION" ]; then
41-
VERSION="$GitBuildVersionSimple"
41+
die "--version was not set"
4242
fi
4343

4444
# Directories
@@ -54,7 +54,7 @@ DOTNET_TOOL="shared/DotnetTool"
5454
PROJ_OUT="$OUT/$DOTNET_TOOL"
5555

5656
PACKAGE="$ROOT/nuget"
57-
CONFIGURATION="${CONFIGURATION:=Release}"
57+
CONFIGURATION="${CONFIGURATION:=Debug}"
5858

5959
# Build parameters
6060
FRAMEWORK=net6.0

0 commit comments

Comments
 (0)