From e0c18d5a51db8c525a2fc9c3424df86d10e2f06f Mon Sep 17 00:00:00 2001 From: mac Date: Sun, 1 Nov 2026 16:11:00 +0800 Subject: [PATCH] build: retain actionable Release API authorization failures --- Packaging/publish_release.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Packaging/publish_release.py b/Packaging/publish_release.py index d22d569..7515852 100644 --- a/Packaging/publish_release.py +++ b/Packaging/publish_release.py @@ -30,12 +30,13 @@ def main(): subprocess.run(["spctl", "--assess", "--type", "install", str(package)], check=True, capture_output=True) commit = subprocess.check_output(["git", "rev-parse", args.tag + "^{commit}"], cwd=ROOT, text=True).strip() helper = args.pkg_forge_repo / "skills/pkg-forge/scripts/publish_release.py" - subprocess.run(["python3", str(helper), "--repository", "dayu/dayu-color", "--repo-root", str(ROOT), + result = subprocess.run(["python3", str(helper), "--repository", "dayu/dayu-color", "--repo-root", str(ROOT), "--tag", args.tag, "--commit", commit, "--title", "大鱼调色 " + app["version"] + "(" + app["build"] + ")", "--body-file", str(args.notes.resolve()), "--asset", str(package), "--sha256", report["sha256"], "--bytes", str(report["bytes"]), "--account", "dayu", - "--report", str(ROOT / "verification/Release.json")], check=True) + "--report", str(ROOT / "verification/Release.json")]) + return result.returncode if __name__ == "__main__": - main() + raise SystemExit(main())