ragbot / .github /workflows /deploy.yml
mothy-08
Setup automatic deployment to Hugging Face
9e38dfa
Raw
History Blame Contribute Delete
606 Bytes
name: Sync to Hugging Face Hub
on:
push:
branches: [main]
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: "mothy-08"
SPACE_NAME: "ragbot"
run: |
git config --global user.email "bot@github.com"
git config --global user.name "GitHub Actions"
git push --force https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME main