Skip to content

Commit c4f9b9f

Browse files
authored
Update deploy.gs
1 parent cd38057 commit c4f9b9f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

user/deploy.gs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
function deploy() {
2-
const filesToCopy = ["lib_common", "lib_main", "lib_sett", "lib_types"];
2+
const script_id = "my_template_script_id";
3+
const updater = ScriptSync.assignTemplate(script_id);
4+
const filesToCopy = ["my_code", "my_index", "my_json"];
35

46
for (let file of filesToCopy) {
5-
const res = ScriptSync.IO_AddNewFile(file);
6-
if (!res) break;
7+
updater.AddNewFile(file);
78
}
9+
updater.commit();
810
}

0 commit comments

Comments
 (0)