Skip to content

Commit ffa6bcb

Browse files
authored
Merge pull request #177 from cnblogs/tweak-packing
Tweak pack.sh
2 parents 550cc6a + 397f55b commit ffa6bcb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ project.lock.json
1111
/publish/*.bat
1212
.vs/
1313
.idea
14+
artifacts/

pack.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
VERSION=$(git tag --sort=committerdate | tail -1)
2-
dotnet build /p:version=$VERSION -c Release Enyim.Caching
3-
dotnet pack -c Release /p:version=$VERSION Enyim.Caching
1+
#!/bin/bash
2+
set -e
43

4+
[ -z $1 ] && echo "Missing version" && exit 1
5+
6+
version=$1
7+
project=Enyim.Caching
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)