Skip to content

Commit 0006a3d

Browse files
authored
Merge pull request #11 from cnblogs/add-pack-script
Add pack.sh
2 parents dd2eb25 + 862defa commit 0006a3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pack.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
4+
[ -z $1 ] && echo "Missing version" && exit 1
5+
6+
version=$1
7+
project=src/Cuiliang.AliyunOssSdk.csproj
8+
dotnet build -p:version=$version -c Release $project
9+
dotnet pack $project -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source -p:Version=$version -o ./artifacts

0 commit comments

Comments
 (0)