Spaces:
Configuration error
Configuration error
Dee Ferdinand commited on
Commit ·
d83ad14
1
Parent(s): 3cd9013
fix: pass HF_TOKEN as Space secret in deploy workflow so uploader.py can authenticate
Browse files
.github/workflows/hf-deploy.yml
CHANGED
|
@@ -21,3 +21,14 @@ jobs:
|
|
| 21 |
git config user.name "Dee Ferdinand"
|
| 22 |
git remote add hf https://AIgoose:${HF_TOKEN}@huggingface.co/spaces/AIgoose/hyperframes-video-studio || true
|
| 23 |
git push hf main --force
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
git config user.name "Dee Ferdinand"
|
| 22 |
git remote add hf https://AIgoose:${HF_TOKEN}@huggingface.co/spaces/AIgoose/hyperframes-video-studio || true
|
| 23 |
git push hf main --force
|
| 24 |
+
|
| 25 |
+
- name: Set HF_TOKEN as Space secret
|
| 26 |
+
env:
|
| 27 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 28 |
+
run: |
|
| 29 |
+
curl -s -X POST \
|
| 30 |
+
"https://huggingface.co/api/spaces/AIgoose/hyperframes-video-studio/secrets" \
|
| 31 |
+
-H "Authorization: Bearer ${HF_TOKEN}" \
|
| 32 |
+
-H "Content-Type: application/json" \
|
| 33 |
+
-d '{"key":"HF_TOKEN","value":"'"${HF_TOKEN}"'"}'
|
| 34 |
+
echo "Space secret HF_TOKEN set."
|