diff options
| -rwxr-xr-x | tools/deploy.py | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/deploy.py b/tools/deploy.py index 84e1c6a..26048e8 100755 --- a/tools/deploy.py +++ b/tools/deploy.py @@ -6,13 +6,21 @@ import subprocess  import pathlib +SCRIPT = pathlib.Path(__file__) +SOURCE_ROOT = SCRIPT.parent.parent.resolve() +ARTIFACTS_DEFAULT = SOURCE_ROOT / "build" / "artifacts" + +  def main() -> None:      parser = argparse.ArgumentParser(          description="Use OpenSSH and rsync to deploy artifacts",      )      parser.add_argument( -        "-a", "--artifacts", required=True, help="local path to artifacts folder" +        "-a", +        "--artifacts", +        default=ARTIFACTS_DEFAULT, +        help="local path to artifacts folder",      )      parser.add_argument(          "-H", "--host", default="cloud", help="target `Host` name from ~/.ssh/config"  | 
