21.nuget-publish.sh 545 B

12345678910111213141516171819
  1. set -e
  2. codePath=/root/code/Sers/dotnet
  3. # codePath=/home/DataStore/HDD/Data/008.jenkins/data/PersistentVolume/workspace/Sers/code/Sers/dotnet
  4. cd ${codePath}
  5. for file in $(grep -a '<TargetFramework>netstandard2.0</TargetFramework>' . -rl --include *.csproj)
  6. do
  7. if ! [[ $file =~ (Apm|Empty|Temp|Zmq|SharedMemory|\-) ]]; then
  8. echo pack $file
  9. cd $codePath
  10. cd $(dirname "$file")
  11. dotnet build --configuration Release
  12. dotnet pack --configuration Release --output '/root/code/Sers/dotnet/Doc/Publish/nuget'
  13. fi
  14. done