Skip to content

fix

fix #17

Workflow file for this run

name: Sync HF Space
on:
push:
branches: [main]
paths:
- 'viz/**'
- '.github/workflows/**'
# 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: Configure Git LFS
run: |
git config lfs.allowincompletepush true
- name: Push /viz to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
# push the viz/ folder to the main branch of the hf space
run: |
git push https://davidheineman:$HF_TOKEN@huggingface.co/spaces/allenai/signal-and-noise \
`git subtree split --prefix=viz main`:main --force