We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a818425 commit 447b42aCopy full SHA for 447b42a
.github/workflows/push-to-hf.yml
@@ -32,20 +32,13 @@ jobs:
32
HF_REPO_TYPE: spaces
33
HF_REPO_ID: chenzihong/GraphGen
34
run: |
35
- set -x # 打开调试,让每一步路径都打印出来
36
git config --global credential.helper store
37
echo "https://user:${HF_TOKEN}@huggingface.co" > ~/.git-credentials
38
39
[[ -d hf-repo ]] && rm -rf hf-repo
40
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
48
- rsync -a --delete --exclude='.git' ./ hf-repo/
+ rsync -a --delete --exclude='.git' ./ hf-repo/ || true
49
50
cd hf-repo
51
git add .
0 commit comments