avidaldo's picture
Fix HF Sync Action to use raw git push
5089724
Raw
History Blame Contribute Delete
420 Bytes
name: Deploy to Hugging Face Space
on:
push:
branches: [main]
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to Hugging Face Hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git push --force https://avidaldo:$HF_TOKEN@huggingface.co/spaces/avidaldo/cifar-10-fastapi HEAD:main