File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -2,37 +2,36 @@ name: Deploy to Hugging Face Spaces
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [main]
76 workflow_dispatch :
87
98jobs :
109 sync-to-huggingface :
1110 runs-on : ubuntu-latest
12-
11+ environment : HF_TOKEN_TRANSCRIBE
1312 steps :
1413 - name : Checkout repository
1514 uses : actions/checkout@v4
1615 with :
1716 fetch-depth : 0
1817 lfs : true
19-
18+
2019 - name : Checkout LFS objects
2120 run : git lfs checkout
22-
21+
2322 - name : Push to Hugging Face Spaces
2423 env :
2524 HF_TOKEN : ${{ secrets.HF_TOKEN }}
2625 run : |
2726 git config --global user.email "github-actions[bot]@users.noreply.github.com"
2827 git config --global user.name "github-actions[bot]"
29-
28+
3029 # Hugging Face Spaces用のリモートを追加
3130 git remote add hf https://tthogho1:${HF_TOKEN}@huggingface.co/spaces/tthogho1/higmachat || true
32-
31+
3332 # Hugging Face Spacesにpush
3433 git push hf main --force
35-
34+
3635 - name : Deployment status
3736 if : success()
3837 run : |
You can’t perform that action at this time.
0 commit comments