mirror of
https://github.com/evennia/evennia.git
synced 2026-04-18 06:09:06 +02:00
Adding better exit statement for deploying docs with mismatched commits
This commit is contained in:
parent
97060f86c1
commit
b49438a819
1 changed files with 13 additions and 1 deletions
|
|
@ -44,8 +44,20 @@ def deploy():
|
|||
os.system("git fetch")
|
||||
os.system("git checkout gh-pages")
|
||||
|
||||
proc = subprocess.Popen(
|
||||
["git", "checkout gh-pages"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
stdin=subprocess.PIPE,
|
||||
shell=True,
|
||||
)
|
||||
if proc.returncode:
|
||||
print("Could not checkout gh-pages branch.")
|
||||
sys.exit(1)
|
||||
else:
|
||||
print("Checked out gh-pages branch.")
|
||||
|
||||
os.system("pwd")
|
||||
os.system("ls")
|
||||
|
||||
names_to_skip = legacy_versions + ["build"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue