Voice-Emotion / .github /workflows /huggingface-sync.yml
aniruddhakumarpaul's picture
Decouple git push and lfs push
11c4813
raw
history blame contribute delete
650 Bytes
name: Sync to Hugging Face hub
on:
push:
branches: [master]
# to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: false
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git lfs install
git lfs fetch --all origin
git remote add hf https://aniruddhakumarpaul:$HF_TOKEN@huggingface.co/spaces/aniruddhakumarpaul/Vocal-Vibe
git push --force hf master
git lfs push --all hf master