diff --git a/.github/workflows/sync_hf.yml b/.github/workflows/sync_hf.yml index fe5cc46..f39404a 100644 --- a/.github/workflows/sync_hf.yml +++ b/.github/workflows/sync_hf.yml @@ -17,6 +17,14 @@ jobs: fetch-depth: 0 lfs: true + - name: Prepare Hugging Face README + run: | + cp README.hf.md README.md + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add README.md + git commit -m "准备 Hugging Face Space 元数据" --allow-empty + - name: Push to Hugging Face Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} diff --git a/README.hf.md b/README.hf.md new file mode 100644 index 0000000..e3886e8 --- /dev/null +++ b/README.hf.md @@ -0,0 +1,16 @@ +--- +title: Danmu API +emoji: 🚀 +colorFrom: blue +colorTo: purple +sdk: docker +app_port: 9321 +pinned: false +--- + +# Danmu API + +这是 danmu_api 的 Hugging Face Space 部署入口。 + +完整文档请看 GitHub 仓库: +https://github.com/huangxd-/danmu_api