Skip to content

Commit

Permalink
Merge pull request #11 from cnblogs/add-pack-script
Browse files Browse the repository at this point in the history
Add pack.sh
  • Loading branch information
cnblogs-dudu authored Dec 13, 2022
2 parents dd2eb25 + 862defa commit 0006a3d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e

[ -z $1 ] && echo "Missing version" && exit 1

version=$1
project=src/Cuiliang.AliyunOssSdk.csproj
dotnet build -p:version=$version -c Release $project
dotnet pack $project -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source -p:Version=$version -o ./artifacts

0 comments on commit 0006a3d

Please sign in to comment.