kenichi9999999 commited on
Commit
ce9b9cb
·
1 Parent(s): 1bf22eb
Files changed (1) hide show
  1. .github/workflows/test.yml +4 -6
.github/workflows/test.yml CHANGED
@@ -3,7 +3,7 @@ name: Deploy to Hugging Face
3
  on:
4
  push:
5
  branches:
6
- - main # またはデプロイしたいブランチを指定
7
 
8
  jobs:
9
  deploy:
@@ -19,12 +19,10 @@ jobs:
19
 
20
  - name: Hugging Faceリモートを追加
21
  run: |
22
- git remote add hf git https://huggingface.co/spaces/kenken999/github
23
- git fetch hf
24
  git branch --set-upstream-to=hf/main main
25
 
26
  - name: Hugging Faceにプッシュ
27
- env:
28
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
29
  run: |
30
- git push https://user:[email protected]/<your-username>/<existing-repo> main
 
3
  on:
4
  push:
5
  branches:
6
+ - main # デプロイしたいブランチを指定
7
 
8
  jobs:
9
  deploy:
 
19
 
20
  - name: Hugging Faceリモートを追加
21
  run: |
22
+ git remote add hf https://kenken999:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/kenken999/github
23
+ git fetch --all
24
  git branch --set-upstream-to=hf/main main
25
 
26
  - name: Hugging Faceにプッシュ
 
 
27
  run: |
28
+ git push hf main --force