Skip to content

Commit ad90d61

Browse files
committed
Update workflow to use HF_TOKEN_TRANSCRIBE environment secret
1 parent e1a1328 commit ad90d61

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/deploy-to-hf-spaces.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,36 @@ name: Deploy to Hugging Face Spaces
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
workflow_dispatch:
87

98
jobs:
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: |

0 commit comments

Comments
 (0)