lith 3 years ago
parent
commit
96c64ad908
2 changed files with 7 additions and 5 deletions
  1. 2 0
      .github/workflows/action-main.yml
  2. 5 5
      Publish/DevOps/github/40.dotnet-publish.sh

+ 2 - 0
.github/workflows/action-main.yml

@@ -6,6 +6,8 @@ name: CI
 on:
   # Triggers the workflow on push tag
   push:
+    #branches: [ master ]
+    
     tags:
       - '*'
 

+ 5 - 5
Publish/DevOps/github/40.dotnet-publish.sh

@@ -20,6 +20,9 @@ export version=`grep '<Version>' ${codePath} -r --include *.csproj | grep -oP '>
 echo "(x.2)dotnet-publish"
 echo "dotnet version: ${netVersion}"
 
+
+mkdir -p $codePath/Publish/release/release/publish
+
 docker run -i --rm \
 --env LANG=C.UTF-8 \
 -v $codePath:/root/code \
@@ -47,14 +50,11 @@ do
 	dotnet publish --configuration Release --output \$publishPath/\$publishName
 done
 
-
-#(x.4)copy bat
-\\cp -rf /root/code/Publish/ReleaseFile/publish/. \$publishPath
-
-
 "
 
 
+#(x.4)copy bat
+\cp -rf $codePath/Publish/ReleaseFile/publish/. $codePath/Publish/release/release/publish
 
 
 echo 'publish succeed!'