Skip to content

Commit

Permalink
refactor: refactor upload files for parachain
Browse files Browse the repository at this point in the history
  • Loading branch information
riyasng12 committed Dec 20, 2023
1 parent 0fa27cd commit 0e56b6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.star
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down
4 changes: 4 additions & 0 deletions package_io/utils.star
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 0e56b6d

Please sign in to comment.