调整ci
This commit is contained in:
2
.github/workflows/nodejs.yml
vendored
2
.github/workflows/nodejs.yml
vendored
@@ -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
|
||||
|
||||
14
build.sh
14
build.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user