Skip to content

Commit 81b4fc9

Browse files
committed
Fix deploy
1 parent 6e29b99 commit 81b4fc9

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

Examples/CloudFunctions/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let package = Package(
2222
dependencies: [
2323
// This is the dependency on the swift-tencent-scf-runtime library.
2424
// In real-world projects, this would say:
25-
// .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1")
25+
// .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3")
2626
.package(name: "swift-tencent-scf-runtime", path: "../.."),
2727
],
2828
targets: [

Examples/CloudFunctions/scripts/deploy.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,4 @@ function_name=${function_name:-SwiftSample} # default for easy testing
5959
read -p "Cloud Function region (eg: ap-beijing): " scf_region
6060
scf_region=${scf_region:-ap-beijing} # default for easy testing
6161

62-
tccli scf UpdateFunctionConfiguration --region "$scf_region" --FunctionName "$function_name" --Runtime "CustomRuntime" --InitTimeout 3
6362
tccli scf UpdateFunctionCode --region "$scf_region" --FunctionName "$function_name" --Handler "swift.main" --CodeSource "Cos" --CosBucketName "$cos_bucket" --CosBucketRegion "$cos_region" --CosObjectName $executable.zip

Examples/LocalDebugging/MyCloudFunction/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let package = Package(
1313
dependencies: [
1414
// This is the dependency on the swift-tencent-scf-runtime library.
1515
// In real-world projects this would say:
16-
// .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1")
16+
// .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3")
1717
.package(name: "swift-tencent-scf-runtime", path: "../../.."),
1818
.package(name: "Shared", path: "../Shared"),
1919
],

Examples/LocalDebugging/MyCloudFunction/scripts/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ coscmd -b "$cos_bucket" -r "$cos_region" upload ".build/scf/$executable/cloud-fu
6464
echo "-------------------------------------------------------------------------"
6565
echo "Updating \"$function_name\" to the latest \"$executable\""
6666
echo "-------------------------------------------------------------------------"
67-
tccli scf UpdateFunctionConfiguration --region "$scf_region" --FunctionName "$function_name" --Runtime "CustomRuntime" --InitTimeout 3
6867
tccli scf UpdateFunctionCode --region "$scf_region" --FunctionName "$function_name" --Handler "swift.main" --CodeSource "Cos" --CosBucketName "$cos_bucket" --CosBucketRegion "$cos_region" --CosObjectName $executable.zip
68+
echo "done"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let package = Package(
4040
.executable(name: "MyCloudFunction", targets: ["MyCloudFunction"]),
4141
],
4242
dependencies: [
43-
.package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.1"),
43+
.package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "0.0.3"),
4444
],
4545
targets: [
4646
.target(name: "MyCloudFunction", dependencies: [

0 commit comments

Comments
 (0)