DZRobo
commited on
Commit
·
b72e135
1
Parent(s):
714ae4b
Add step to inject HF metadata into README
Browse filesIntroduces a workflow step that prepends Hugging Face metadata to the README file before pushing to the HF mirror. This ensures the repository contains required metadata for Hugging Face model repositories.
.github/workflows/hf-mirror.yml
CHANGED
|
@@ -43,6 +43,34 @@ jobs:
|
|
| 43 |
# Rewrite history for all refs so no plain binaries remain in the mirror
|
| 44 |
git lfs migrate import --everything --yes --include="*.jpg,*.jpeg,*.png,*.webp,*.gif,*.bmp,*.tif,*.tiff"
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
- name: Push to HF mirror
|
| 47 |
env:
|
| 48 |
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
|
|
|
| 43 |
# Rewrite history for all refs so no plain binaries remain in the mirror
|
| 44 |
git lfs migrate import --everything --yes --include="*.jpg,*.jpeg,*.png,*.webp,*.gif,*.bmp,*.tif,*.tiff"
|
| 45 |
|
| 46 |
+
- name: Inject HF metadata (mirror-only)
|
| 47 |
+
run: |
|
| 48 |
+
cat > README.hf.md << 'EOF'
|
| 49 |
+
---
|
| 50 |
+
library_name: comfyui
|
| 51 |
+
repo_type: model
|
| 52 |
+
license: agpl-3.0
|
| 53 |
+
pretty_name: MagicNodes (CADE 2.5, QSilk)
|
| 54 |
+
pipeline_tag: text-to-image
|
| 55 |
+
tags:
|
| 56 |
+
- comfyui
|
| 57 |
+
- stable-diffusion
|
| 58 |
+
- sdxl
|
| 59 |
+
- pipeline
|
| 60 |
+
- magicnodes
|
| 61 |
+
- zeresfdg
|
| 62 |
+
- qsilk
|
| 63 |
+
- depth-anything
|
| 64 |
+
- render
|
| 65 |
+
homepage: https://github.com/1dZb1/MagicNodes
|
| 66 |
+
---
|
| 67 |
+
EOF
|
| 68 |
+
printf "\n" >> README.hf.md
|
| 69 |
+
cat README.md >> README.hf.md
|
| 70 |
+
mv README.hf.md README.md
|
| 71 |
+
git add README.md || true
|
| 72 |
+
git commit -m "ci(hf): inject HF metadata" || true
|
| 73 |
+
|
| 74 |
- name: Push to HF mirror
|
| 75 |
env:
|
| 76 |
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|