diff --git a/deploy.py b/deploy.py index bd90182..3ff21e0 100644 --- a/deploy.py +++ b/deploy.py @@ -51,9 +51,9 @@ def get_env_info() -> dict[str, str]: env_info["message"] = message.stdout.strip() # git tag if ON_CF: - tag = "cf_pages" or run( + tag = run( ["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8" - ).stdout.split("-")[0] + ).stdout.split("-")[0] or "cf_pages" else: tag = run( ["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8"