From bb13514103d169f45b1d5d7ad632dcf7db339ee3 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 2 Dec 2025 10:35:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- action.yml | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 action.yml diff --git a/README.md b/README.md index 2b45d60..d3d266b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ name: default steps: - name: upload - image: ccr.ccs.tencentyun.com/xiaoqidun/gocos + image: ccr.ccs.tencentyun.com/xiaoqidun/gocos:latest settings: secret_id: from_secret: secret_id @@ -40,7 +40,7 @@ API密钥管理获得的SecretKey ### source_path -DroneCI中文件的源位置 +构建环境中文件的源位置 ### target_path diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..876c5c8 --- /dev/null +++ b/action.yml @@ -0,0 +1,25 @@ +name: '腾讯云 COS 文件上传' +description: '将文件上传到腾讯云对象存储 (COS)' +author: '肖其顿' +inputs: + secret_id: + description: 'API密钥管理获得的SecretId' + required: true + secret_key: + description: 'API密钥管理获得的SecretKey' + required: true + bucket_url: + description: '存储桶概览中的访问域名' + required: true + source_path: + description: '构建环境中文件的源位置' + required: true + target_path: + description: '存储桶中文件的目标位置' + required: true + strip_prefix: + description: '从文件的源位置剔除前缀' + required: false +runs: + using: 'docker' + image: 'docker://ccr.ccs.tencentyun.com/xiaoqidun/gocos:latest' \ No newline at end of file