mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-27 23:47:39 +01:00
CI: improve more ci worflow
This commit is contained in:
@@ -256,13 +256,18 @@ def deploy(repo, source_json, release_tag, short_commit, marketing_version, vers
|
|||||||
repo = (ROOT / repo).resolve()
|
repo = (ROOT / repo).resolve()
|
||||||
ipa_path = ROOT / ipa_name
|
ipa_path = ROOT / ipa_name
|
||||||
|
|
||||||
|
|
||||||
if not repo.exists():
|
if not repo.exists():
|
||||||
raise SystemExit(f"{repo} repo missing")
|
raise SystemExit(f"{repo} repo missing")
|
||||||
|
|
||||||
if not ipa_path.exists():
|
if not ipa_path.exists():
|
||||||
raise SystemExit(f"{ipa_path} missing")
|
raise SystemExit(f"{ipa_path} missing")
|
||||||
|
|
||||||
|
pushed = False
|
||||||
|
if Path.cwd().resolve() != repo:
|
||||||
run(f"pushd {repo}", check=True)
|
run(f"pushd {repo}", check=True)
|
||||||
|
pushed = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
source_path = repo / source_json
|
source_path = repo / source_json
|
||||||
if not source_path.exists():
|
if not source_path.exists():
|
||||||
@@ -309,7 +314,7 @@ def deploy(repo, source_json, release_tag, short_commit, marketing_version, vers
|
|||||||
raise SystemExit("Deploy push failed after retries")
|
raise SystemExit("Deploy push failed after retries")
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
run("popd", check=False)
|
if pushed: run("popd", check=False)
|
||||||
|
|
||||||
# ----------------------------------------------------------
|
# ----------------------------------------------------------
|
||||||
# ENTRYPOINT
|
# ENTRYPOINT
|
||||||
|
|||||||
Reference in New Issue
Block a user