修改ci文件

This commit is contained in:
loser 2023-03-16 18:34:14 +08:00
parent d833a2febe
commit f560a8a431
2 changed files with 7 additions and 6 deletions

View File

@ -19,22 +19,22 @@ steps:
- pwd
- ls -alt
- npm config set registry https://registry.npm.taobao.org # 切换淘宝镜像
- yarn
- yarn build
- npm install
- npm run build
when:
event: push
- name: deploy-project
image: appleboy/drone-scp
settings:
host: 1.117.68.37
host: ssh_ip
username: root
password:
from_secret: jxb_server_pwd
from_secret: ssh_password
port: 22
target: /www/wwwroot/jxb.admin.guwengkj.com #宿主机绝对路径
target: /www/wwwroot/admin.gwkjxb.com #宿主机绝对路径
source: ./dist/*
script:
- rm -rf /www/wwwroot/jxb.admin.guwengkj.com/dist/
- rm -rf /www/wwwroot/admin.gwkjxb.com/dist/
when:
event: push
- name: notify

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ test/
node_modules
dist
.idea