Commit
·
cacc209
1
Parent(s):
ce9b9cb
ss
Browse files
.github/workflows/test.yml
CHANGED
@@ -9,8 +9,10 @@ jobs:
|
|
9 |
deploy:
|
10 |
runs-on: ubuntu-latest
|
11 |
steps:
|
12 |
-
- name: GitHub
|
13 |
uses: actions/checkout@v3
|
|
|
|
|
14 |
|
15 |
- name: Gitを設定
|
16 |
run: |
|
@@ -19,9 +21,8 @@ jobs:
|
|
19 |
|
20 |
- name: Hugging Faceリモートを追加
|
21 |
run: |
|
22 |
-
git remote add hf https://
|
23 |
-
git fetch
|
24 |
-
git branch --set-upstream-to=hf/main main
|
25 |
|
26 |
- name: Hugging Faceにプッシュ
|
27 |
run: |
|
|
|
9 |
deploy:
|
10 |
runs-on: ubuntu-latest
|
11 |
steps:
|
12 |
+
- name: GitHubリポジトリをチェックアウト(完全クローン)
|
13 |
uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0 # これが重要!完全履歴を取得する
|
16 |
|
17 |
- name: Gitを設定
|
18 |
run: |
|
|
|
21 |
|
22 |
- name: Hugging Faceリモートを追加
|
23 |
run: |
|
24 |
+
git remote add hf https://user:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/kenken999/github
|
25 |
+
git fetch hf
|
|
|
26 |
|
27 |
- name: Hugging Faceにプッシュ
|
28 |
run: |
|