Skip to content

Commit ddc4796

Browse files
committed
fix: tag create
1 parent dfc5074 commit ddc4796

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

example/serverless.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ inputs:
1414
protocol: https
1515
acl:
1616
permissions: public-read
17+
tags:
18+
- key: slstest
19+
value: slstest

serverless.component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cos
2-
version: 0.2.0
2+
version: 0.2.1
33
author: 'Tencent Cloud, Inc.'
44
org: 'Tencent Cloud, Inc.'
55
description: Deploy Tencent COS.

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"tencent-component-toolkit": "^2.5.7"
3+
"tencent-component-toolkit": "^2.5.11"
44
}
55
}

src/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ async function formatInputs(instance, inputs) {
99
replace: inputs.replace === true,
1010
bucket,
1111
protocol: inputs.protocol || 'https',
12-
keyPrefix: inputs.targetDir || '/'
12+
keyPrefix: inputs.targetDir || '/',
13+
tags: inputs.tags
1314
}
1415
let files = null
1516
if (inputs.src) {

0 commit comments

Comments
 (0)