Skip to content

Commit 7a6ebd1

Browse files
committed
add timeouts and messages to publish scripts
1 parent 5b36c67 commit 7a6ebd1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

scripts/publish.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ def main() -> None:
1515

1616
vsix_path = Path(dist_path, f"robotcode-{current_version}.vsix")
1717

18-
run(f"npx vsce publish -i {vsix_path}", shell=True)
19-
run(f"npx ovsx publish {vsix_path}", shell=True)
20-
run(f"poetry publish --username {os.environ['PYPI_USERNAME']} --password {os.environ['PYPI_PASSWORD']}", shell=True)
18+
print("publish to vscode marketplace...")
19+
run(f"npx vsce publish -i {vsix_path}", shell=True, timeout=600)
20+
21+
print("publish to openVSX...")
22+
run(f"npx ovsx publish {vsix_path}", shell=True, timeout=600)
23+
24+
print("publish to PyPi...")
25+
run(
26+
f"poetry publish --username {os.environ['PYPI_USERNAME']} --password {os.environ['PYPI_PASSWORD']}",
27+
shell=True,
28+
timeout=600,
29+
)
2130

2231

2332
if __name__ == "__main__":

0 commit comments

Comments
 (0)