Skip to content

feat: redeploy fresh model weights and demo trajectories #16

feat: redeploy fresh model weights and demo trajectories

feat: redeploy fresh model weights and demo trajectories #16

Workflow file for this run

name: Sync to Hugging Face Spaces
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git lfs install
git remote add hf https://sadhumitha-s:$HF_TOKEN@huggingface.co/spaces/sadhumitha-s/DT-Explorer
git push --force hf HEAD:main 2> push_err.txt || {
echo "=== HUGGING FACE PUSH ERROR LOG ==="
if [ -n "$HF_TOKEN" ]; then
sed "s/$HF_TOKEN/*****_TOKEN/g" push_err.txt
else
cat push_err.txt
fi
exit 1
}