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: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 运行部署脚本 - name: 运行部署脚本
run: python3 deploy.py run: python3 deploy.py

View File

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