Spaces:
Runtime error
Runtime error
| name: 🚀 Deploy to Hugging Face Spaces | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # 🔧 Important : clone complet | |
| - name: 📦 Setup Git LFS | |
| run: | | |
| git lfs install | |
| git lfs pull # ✅ Télécharge les objets LFS avant push | |
| - name: 🛠️ Setup Git config | |
| run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "GitHub Actions Bot" | |
| - name: 🔑 Authenticate and push to Hugging Face | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git remote add hf https://rkonan:${HF_TOKEN}@huggingface.co/spaces/rkonan/chatbot-fr | |
| git fetch hf | |
| git push hf +HEAD:main | |