Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit afdb2f4

Browse files
committed
made publish use trimming and warp pack
1 parent 31882c3 commit afdb2f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/publish.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ mkdir -p artifacts/
66

77
pushd src
88
if [[ $1 == "netcoreapp3.0" ]]; then
9-
dotnet publish -c Release -f $1 -r $2 /p:PublishSingleFile=true /p:UsePreviewVersion=true
9+
dotnet tool install --global dotnet-warp || true
10+
dotnet warp -r $2 -p Configuration=Release -p PublishTrimmed=true -p UsePreviewVersion=true
1011
if [[ $2 == win-* ]]; then
1112
BIN_EXT=".exe"
1213
else
1314
BIN_EXT=""
1415
fi
15-
mv -f "bin/Release/$1/$2/publish/Codacy.CSharpCoverage$BIN_EXT" "../artifacts/Codacy.CSharpCoverage_$2$BIN_EXT"
16+
mv -f "Codacy.CSharpCoverage$BIN_EXT" "../artifacts/Codacy.CSharpCoverage_$2$BIN_EXT"
1617
else
1718
dotnet publish -c Release -f $1 -r $2
1819
pushd bin/Release/$1/$2/publish

0 commit comments

Comments
 (0)