your-github-username
Auto-update from GitHub Actions
d9e62f5
raw
history blame contribute delete
747 Bytes
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 "[email protected]"
git config --global user.name "your-github-username"
git clone https://user:[email protected]/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