diff --git a/main.star b/main.star index 776305e..63e84da 100644 --- a/main.star +++ b/main.star @@ -34,10 +34,9 @@ def run_polkadot_setup(plan, args): """ utils.check_config_validity(plan, args) - - plan.upload_files(src = "./parachain/static_files/configs", name = "configs") - plan.upload_files(src = "./parachain/static_files/javascript", name = "javascript") - + + utils.upload_files(plan) + prometheus_template = read_file("./package_io/static_files/prometheus.yml.tmpl") service_details = {} diff --git a/package_io/utils.star b/package_io/utils.star index 2cc333f..13a94d8 100644 --- a/package_io/utils.star +++ b/package_io/utils.star @@ -71,3 +71,7 @@ def check_config_validity(plan, args): else: return fail("parachain node-type can be only validator/full/collator") +def upload_files(plan): + plan.upload_files(src = "../parachain/static_files/configs", name = "configs") + plan.upload_files(src = "../parachain/static_files/javascript", name = "javascript") +