Claude commited on
Commit
0a447f1
·
unverified ·
1 Parent(s): 8ab418b

fix(ci): remplacer action inexistante par git push direct vers HF

Browse files

huggingface/huggingface-spaces-push n'existe pas.
Utilise git push direct vers https://huggingface.co/spaces/Ma-Ri-Ba-Ku/scriptorium-ai
avec authentification via HF_TOKEN (secret GitHub).

https://claude.ai/code/session_018woyEHc8HG2th7V4ewJ4Kg

Files changed (1) hide show
  1. .github/workflows/deploy-hf.yml +7 -4
.github/workflows/deploy-hf.yml CHANGED
@@ -23,7 +23,10 @@ jobs:
23
  fetch-depth: 0 # historique complet pour le push HF
24
 
25
  - name: Push to HuggingFace Space
26
- uses: huggingface/huggingface-spaces-push@v0
27
- with:
28
- repo-name: Ma-Ri-Ba-Ku/scriptorium-ai
29
- hf-token: ${{ secrets.HF_TOKEN }}
 
 
 
 
23
  fetch-depth: 0 # historique complet pour le push HF
24
 
25
  - name: Push to HuggingFace Space
26
+ env:
27
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
28
+ run: |
29
+ git config user.email "github-actions[bot]@users.noreply.github.com"
30
+ git config user.name "github-actions[bot]"
31
+ git remote add hf https://Ma-Ri-Ba-Ku:${HF_TOKEN}@huggingface.co/spaces/Ma-Ri-Ba-Ku/scriptorium-ai
32
+ git push hf main --force