name: Deploy to Hugging Face Space on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v3 - name: Push to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git config --global user.email "your-email@example.com" git config --global user.name "your-github-username" git clone https://user:$HF_TOKEN@huggingface.co/spaces/Nithin89/AI_Research_Buddy hf_space rsync -av --exclude '.git' . hf_space/ cd hf_space git add . git commit -m "Auto-update from GitHub Actions" || echo "No changes to commit" git push origin main