|
@@ -1,9 +1,11 @@
|
|
|
set -e
|
|
|
|
|
|
-# cd /root/temp/svn/Publish/DevOps/release-bash;bash startup.bash;
|
|
|
+# cd /root/temp/svn/Publish/DevOps/github-bash;bash startup.bash;
|
|
|
+
|
|
|
+
|
|
|
|
|
|
#----------------------------------------------
|
|
|
-#(x.1)当前路径
|
|
|
+#(x.1)当前路径
|
|
|
curPath=$PWD
|
|
|
|
|
|
cd $curPath/../../..
|
|
@@ -11,7 +13,17 @@ export basePath=$PWD
|
|
|
cd $curPath
|
|
|
|
|
|
|
|
|
+# export basePath=/root/temp/svn
|
|
|
+
|
|
|
+export name=Sers
|
|
|
+
|
|
|
+#export DOCKER_USERNAME=serset
|
|
|
+#export DOCKER_PASSWORD=xxx
|
|
|
|
|
|
+#export NUGET_SERVER=https://api.nuget.org/v3/index.json
|
|
|
+#export NUGET_KEY=xxxxxxxxxx
|
|
|
+
|
|
|
+#export export GIT_SSH_SECRET=xxxxxx
|
|
|
|
|
|
|
|
|
#----------------------------------------------
|
|
@@ -19,11 +31,10 @@ echo "(x.2)get version"
|
|
|
export version=`grep '<Version>' $(grep '<pack>\|<publish>' ${basePath} -r --include *.csproj -l | head -n 1) | grep -oP '>(.*)<' | tr -d '<>'`
|
|
|
echo $version
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
#----------------------------------------------
|
|
|
-echo "(x.3)自动发布 $name-$version"
|
|
|
+#(x.3)bash
|
|
|
|
|
|
for file in *.sh
|
|
|
do
|
|
@@ -37,7 +48,4 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-#----------------------------------------------
|
|
|
-#(x.9)
|
|
|
-cd $curPath
|
|
|
+
|