Spaces:
Running
Running
update github action hugging face API
Browse files
.github/workflows/sync-to-hugging-face-hub.yml
CHANGED
@@ -14,7 +14,14 @@ jobs:
|
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
- name: Push to hub
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
20 |
run: git push https://Prgrmmer:[email protected]/spaces/Prgrmmer/ai-dungeon main
|
|
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
17 |
+
|
18 |
+
- name: Login to Hugging Face
|
19 |
+
run: |
|
20 |
+
pip install --upgrade huggingface_hub
|
21 |
+
huggingface-cli login --token ${{ secrets.HUGGINGFACE_API_KEY }}
|
22 |
+
|
23 |
- name: Push to hub
|
24 |
env:
|
25 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
26 |
+
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
|
27 |
run: git push https://Prgrmmer:[email protected]/spaces/Prgrmmer/ai-dungeon main
|