name: Push to HF Repo on: push: branches: - main workflow_dispatch: jobs: push_to_hf: runs-on: ubuntu-latest steps: # 1. Checkout the repo - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Git LFS run: | git lfs install git lfs fetch --all git lfs pull # 2. Set up Git - name: Configure Git run: | git config user.name "MotifTech" git config user.email "huggingface@motiftech.io" # 3. Add HF remote - name: Add Hugging Face remote run: | git remote add hf https://huggingface.co/Motif-Technologies/optimizer git fetch hf || true # 4. Push to HF repo - name: Push to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git push "https://hf_token:${HF_TOKEN}@huggingface.co/Motif-Technologies/optimizer" HEAD:main