Kernels
optimizer / .github /workflows /push-to-hf.yml
wyldecat's picture
chore: add push-to-hf workflow
268d190
raw
history blame contribute delete
998 Bytes
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 "[email protected]"
# 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