Spaces:
Running on Zero
Running on Zero
| name: Sync to Hugging Face Spaces | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| workflow_dispatch: | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Push to Hugging Face Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| if [ -n "$HF_TOKEN" ]; then | |
| git push --force https://jayantan:$HF_TOKEN@huggingface.co/spaces/jayantan/EpiADR-Net main | |
| else | |
| echo "HF_TOKEN secret not set, skipping automatic Hugging Face push." | |
| fi | |