Spaces:
Sleeping
Sleeping
name: Sync to Hugging Face hub | |
on: | |
push: | |
branches: [nginx] | |
#test from xiao's bigbigtail account | |
# 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 | |
- name: Push to huggingface hub | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
HF_USERNAME: luminlab-adapt | |
HF_SPACENAME: nginx | |
LOCAL_BRANCH: nginx | |
HF_REMOTE_BRANCH: main | |
run: git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$HF_SPACENAME $LOCAL_BRANCH:$HF_REMOTE_BRANCH -f | |