diff --git a/action.yml b/action.yml index f420306..ba4202c 100644 --- a/action.yml +++ b/action.yml @@ -1,24 +1,6 @@ name: 'upyun-upx-action' author: 'YaoKun ' description: 'Deploy your files to upyun using upyun-upx.' -inputs: - bucket: - description: '服务名' - required: true - operator: - description: '操作员' - required: true - operator_password: - description: '操作员密码' - required: true - local_path: - description: 'will put all file under this path' - required: true - default: ./public/* - remote_path: - description: 'files will copy to under remote_path' - required: true - default: / runs: using: 'docker' diff --git a/entrypoint.sh b/entrypoint.sh index daae8f8..9d9505d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \ No newline at end of file