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

Commit 07a1c01

Browse files
authored
Merge pull request #11 from pamidur/warp-pack
made publish use trimming and warp pack
2 parents ce8a56c + ed0d061 commit 07a1c01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/publish.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ 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 new tool-manifest --force
10+
dotnet tool install --local dotnet-warp
11+
dotnet warp -r "$2" -p "Configuration=Release" -p "PublishTrimmed=true" -p "UsePreviewVersion=true"
1012
if [[ $2 == win-* ]]; then
1113
BIN_EXT=".exe"
1214
else
1315
BIN_EXT=""
1416
fi
15-
mv -f "bin/Release/$1/$2/publish/Codacy.CSharpCoverage$BIN_EXT" "../artifacts/Codacy.CSharpCoverage_$2$BIN_EXT"
17+
mv -f "Codacy.CSharpCoverage$BIN_EXT" "../artifacts/Codacy.CSharpCoverage_$2$BIN_EXT"
1618
else
1719
dotnet publish -c Release -f $1 -r $2
1820
pushd bin/Release/$1/$2/publish

0 commit comments

Comments
 (0)