Rachit-Mangawa
refactor(deploy): use direct git push to bypass sync action API bug
45ac092
Raw History Blame
505 Bytes
name: Sync to Hugging Face
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_REPO_ID: ${{ secrets.HF_REPO_ID }}
run: |
git push --force https://IDKHowToCodeFR:$HF_TOKEN@huggingface.co/spaces/$HF_REPO_ID main