From 55797be1d7f97cffd3f95b89dfd8dbd2d1998f58 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 2 Dec 2025 10:24:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=B0=83=E6=95=B4=E5=8F=82=E6=95=B0):=20?= =?UTF-8?q?=E6=BA=90=E5=92=8C=E7=9B=AE=E7=9A=84=E8=BE=93=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8E=E9=9D=A2=E6=B7=BB=E5=8A=A0=5Fpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- gocos.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6ea886d..2b45d60 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ steps: from_secret: secret_key bucket_url: from_secret: bucket_url - source: build/release - target: build/release + source_path: build/release + target_path: build/release strip_prefix: build/release ``` @@ -38,11 +38,11 @@ API密钥管理获得的SecretKey 存储桶概览中的访问域名 -### source +### source_path DroneCI中文件的源位置 -### target +### target_path 存储桶中文件的目标位置 diff --git a/gocos.go b/gocos.go index 73b86c1..1ac88f5 100644 --- a/gocos.go +++ b/gocos.go @@ -20,8 +20,8 @@ const ( SecretID = "secret_id" SecretKey = "secret_key" BucketURL = "bucket_url" - Source = "source" - Target = "target" + SourcePath = "source_path" + TargetPath = "target_path" StripPrefix = "strip_prefix" PathSeparator = "/" ) @@ -65,8 +65,8 @@ func main() { secretID = GetConfig(SecretID) secretKey = GetConfig(SecretKey) bucketURL = GetConfig(BucketURL) - source = GetConfig(Source) - target = GetConfig(Target) + source = GetConfig(SourcePath) + target = GetConfig(TargetPath) stripPrefix = GetConfig(StripPrefix) ) if StrIsEmpty(secretID, secretKey, bucketURL, source, target) {