From 1ebda0078caed0f2533d046c82bbe32a9f97da06 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 2 Dec 2025 11:16:27 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E):=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6720151..fe85b17 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,27 @@ 通过Gitea/Drone CI上传文件到腾讯云对象存储 +# Gitea配置例子 +```yaml +on: [push, workflow_dispatch] + +jobs: + default: + runs-on: cn + steps: + - name: checkout + uses: actions/checkout@v6 + - name: upload to cos + uses: xiaoqidun/gocos@latest + with: + secret_id: ${{ secrets.SECRET_ID }} + secret_key: ${{ secrets.SECRET_KEY }} + bucket_url: ${{ secrets.BUCKET_URL }} + source_path: build/release + target_path: build/release + strip_prefix: build/release +``` + # Drone配置例子 ```yml @@ -10,7 +31,7 @@ type: docker name: default steps: - - name: upload + - name: upload to cos image: ccr.ccs.tencentyun.com/xiaoqidun/gocos:latest settings: secret_id: