leothesouthafrican's picture
hf update
314d776
raw
history blame contribute delete
706 Bytes
name: Sync to Hugging Face hub
on:
push:
branches: [website]
#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
lfs: true
- name: Push to huggingface hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: luminlab-adapt
HF_SPACENAME: website-wandb
LOCAL_BRANCH: website
HF_REMOTE_BRANCH: main
run: git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$HF_SPACENAME $LOCAL_BRANCH:$HF_REMOTE_BRANCH -f