Skip to content

Commit a818425

Browse files
ci: test pusg-to-hf
1 parent 5f7cf3d commit a818425

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/push-to-hf.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,21 @@ jobs:
3232
HF_REPO_TYPE: spaces
3333
HF_REPO_ID: chenzihong/GraphGen
3434
run: |
35+
set -x # 打开调试,让每一步路径都打印出来
3536
git config --global credential.helper store
3637
echo "https://user:${HF_TOKEN}@huggingface.co" > ~/.git-credentials
3738
39+
[[ -d hf-repo ]] && rm -rf hf-repo
3840
git clone https://huggingface.co/${HF_REPO_TYPE}/${HF_REPO_ID} hf-repo
41+
42+
# 打印当前目录和 hf-repo 目录
43+
pwd
44+
ls -la
45+
ls -la hf-repo
46+
47+
# 关键:确保“源”是当前仓库,“目标”是 hf-repo
3948
rsync -a --delete --exclude='.git' ./ hf-repo/
49+
4050
cd hf-repo
4151
git add .
4252
git diff-index --quiet HEAD || \

0 commit comments

Comments
 (0)