ds2api-browser / .github /workflows /sync_to_hf.yml
nacho
chore: 清理 dead code,更新面板支持 JSON 导入,补全 .env.example,修复 Actions checkout v5
594e4c0
raw
history blame contribute delete
597 Bytes
name: Sync to HuggingFace Space
on:
push:
branches:
- master
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
lfs: true
- name: Push to HuggingFace Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git push https://huanx:${HF_TOKEN}@huggingface.co/spaces/huanx/ds2api-browser HEAD:main --force