合并为一个项目 #14
2
.github/workflows/nodejs.yml
vendored
2
.github/workflows/nodejs.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
|||||||
username: ${{ secrets.SSH_USERNAME }}
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
password: ${{ secrets.SSH_PASSWORD }}
|
password: ${{ secrets.SSH_PASSWORD }}
|
||||||
port: ${{ secrets.SSH_PORT }}
|
port: ${{ secrets.SSH_PORT }}
|
||||||
source: "admin.tar,index.tar"
|
source: "index.tar"
|
||||||
target: "/www/wwwroot/celess.cn"
|
target: "/www/wwwroot/celess.cn"
|
||||||
|
|
||||||
- name: Run SSH command
|
- name: Run SSH command
|
||||||
|
|||||||
14
build.sh
14
build.sh
@@ -27,14 +27,14 @@ fi
|
|||||||
|
|
||||||
# index
|
# index
|
||||||
echo -e "\t\tBuild for index page "
|
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 ./dist/index/ && tar -cf index.tar ./* && cp index.tar $basePath
|
||||||
|
|
||||||
cd "$basePath"
|
#cd "$basePath"
|
||||||
|
|
||||||
# admin
|
## admin
|
||||||
echo -e "\t\tBuild for admin page "
|
#echo -e "\t\tBuild for admin page "
|
||||||
cd $basePath/admin && npm install && ng build --prod
|
#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 ./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
|
# cd .. && tar -cf admin.tar ./admin/ && cp admin.tar $basePath
|
||||||
|
|||||||
Reference in New Issue
Block a user