| name: Sync to Hugging Face | |
| on: | |
| push: | |
| branches: [main] | |
| # to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Install huggingface_hub | |
| run: pip install huggingface_hub[cli] | |
| - name: Push to hub | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| hf upload lyffseba/dexter . --repo-type model --exclude "labs/autoresearch/.venv/*" --exclude "labs/autoresearch/mojo/.pixi/*" --exclude ".git/*" --exclude ".github/*" | |