robyramos/smart
0
1name: Sync to Hugging Face hub2on:3 push:4 branches: [main]5 6 # to run this workflow manually from the Actions tab7 workflow_dispatch:8 9jobs:10 sync-to-hub:11 runs-on: ubuntu-latest12 steps:13 - uses: actions/checkout@v314 with:15 fetch-depth: 016 lfs: true17 - name: Set git config18 run: |19 git config --global pull.rebase false20 git config --global user.email "you@example.com"21 git config --global user.name "Your Name"22 - name: Pull to hub23 env:24 HF_TOKEN: ${{ secrets.HF_TOKEN }}25 run: |26 git remote add hub https://robyramos:$HF_TOKEN@huggingface.co/spaces/robyramos/smart27 git fetch hub28 git merge --allow-unrelated-histories hub/main29 30 - name: Push to hub31 env:32 HF_TOKEN: ${{ secrets.HF_TOKEN }}33 run: git push https://robyramos:$HF_TOKEN@huggingface.co/spaces/robyramos/smart main34 