TextGenPro / .github /workflows /huggingface-sync.yml
RahulChhatbar
Update huggingface-sync.yml
39b9d1b unverified
raw
history blame contribute delete
576 Bytes
name: Sync To HuggingFace
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Sync to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://RahulChhatbar:$HF_TOKEN@huggingface.co/spaces/RahulChhatbar/TextGenPro
git push hf main