fix #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |