This commit is contained in:
小海
2020-05-16 22:25:13 +08:00
parent 42177a7721
commit 3e5524397b
2 changed files with 8 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: "admin.tar,index.tar"
source: "index.tar"
target: "/www/wwwroot/celess.cn"
- name: Run SSH command

View File

@@ -27,14 +27,14 @@ fi
# index
echo -e "\t\tBuild for index page "
cd ./index && npm install && ng build --prod
npm install && ng build --prod
cd ./dist/index/ && tar -cf index.tar ./* && cp index.tar $basePath
cd "$basePath"
#cd "$basePath"
# admin
echo -e "\t\tBuild for admin page "
cd $basePath/admin && npm install && ng build --prod
cd ./dist/admin/ && sed '6s/\"\/\"/\"\/admin\/\"/g' index.html > index.txt && cp index.txt index.html
cd .. && tar -cf admin.tar ./admin/ && cp admin.tar $basePath
## admin
#echo -e "\t\tBuild for admin page "
#cd $basePath/admin && npm install && ng build --prod
#cd ./dist/admin/ && sed '6s/\"\/\"/\"\/admin\/\"/g' index.html > index.txt && cp index.txt index.html
# cd .. && tar -cf admin.tar ./admin/ && cp admin.tar $basePath