nuriyev's picture
Sync from GitHub
c4e0ca5 verified
raw
history blame contribute delete
679 Bytes
name: Sync to Hugging Face hub
on:
push:
branches: [master]
workflow_dispatch:
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 }}
run: |
pip install huggingface_hub
python - <<EOF
from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
folder_path=".",
repo_id="nuriyev/text2mcdm",
repo_type="space",
commit_message="Sync from GitHub",
)
EOF