This commit is contained in:
shenjack 2024-04-20 22:31:39 +08:00
parent 8ee43aef51
commit a8d23feddd
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 运行部署脚本
run: python3 deploy.py

View File

@ -43,7 +43,7 @@ def get_env_info() -> dict[str, str]:
env_info["message"] = message.stdout.strip()
# git tag
if ON_CF:
tag = os.getenv("CF_PAGES_COMMIT_TAG") or "cf"
tag = os.getenv("CF_PAGES_COMMIT_TAG") or "cf_deploy"
else:
tag = run(
["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8"