12345678910111213141516171819202122232425262728293031323334353637 |
- set -e
- #---------------------------------------------------------------------
- #(x.1)参数
- args_="
- export codePath=/root/temp/svn
- export NUGET_SERVER=https://api.nuget.org/v3/index.json
- export NUGET_KEY=xxxxxxxxxx
- # "
-
-
- export nugetPath=dotnet/Doc/Publish/nuget
-
- #----------------------------------------------
- echo "(x.2)nuget-pack"
- docker run -i --rm \
- --env LANG=C.UTF-8 \
- -v $codePath:/root/code \
- serset/dotnet:6.0-sdk \
- bash -c "
- for file in /root/code/$nugetPath/*.nupkg
- do
- echo nuget push \$file
- dotnet nuget push \$file -k ${NUGET_KEY} -s ${NUGET_SERVER}
- done
- "
-
|