@ -1,24 +1,6 @@
name: 'upyun-upx-action'
author: 'YaoKun <yaokun@bwcxtech.com>'
description: 'Deploy your files to upyun using upyun-upx.'
inputs:
bucket:
description: '服务名'
required: true
operator:
description: '操作员'
operator_password:
description: '操作员密码'
local_path:
description: 'will put all file under this path'
default: ./public/*
remote_path:
description: 'files will copy to under remote_path'
default: /
runs:
using: 'docker'
@ -10,8 +10,8 @@ apk update \
&& mv upx /usr/local/bin/upx
### 执行upx upload
upx login ${inputs.bucket} ${inputs.operator} ${inputs.operator_password}
upx login ${bucket} ${operator} ${operator_password}
echo "start upx upload!"
upx sync ${inputs.local_path} ${inputs.remote_path} --delete
upx sync ${local_path} ${remote_path} --delete
echo "upx upload successful!"
upx logout