@@ -14,32 +14,26 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v4
17-
17+
1818 - name : Set up Python
1919 uses : actions/setup-python@v5
2020 with :
2121 python-version : ' 3.11'
22-
22+
2323 - name : Install dependencies
2424 run : pip install -r requirements.txt
25-
25+
2626 - name : Validate Skill
2727 run : |
28- python3 << 'EOF '
28+ python3 - <<'PYEOF '
2929 import re, yaml
30-
3130 with open('SKILL.md', 'r') as f:
3231 content = f.read()
33-
34- match = re.match(r'^---
35- (.*?)
36- ---' , content, re.DOTALL)
32+ match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)
3733 fm = yaml.safe_load(match.group(1))
38-
3934 print(f"Skill: {fm['name']}")
40- print(f"Version : ${{ github.ref_name }}")
41- EOF
42-
35+ PYEOF
36+
4337 - name : Create skill package
4438 run : |
4539 mkdir -p dist
5044 LICENSE \
5145 README.md \
5246 README_CN.md
53-
47+
5448 - name : Upload artifact
5549 uses : actions/upload-artifact@v4
5650 with :
@@ -63,38 +57,34 @@ jobs:
6357 runs-on : ubuntu-latest
6458 steps :
6559 - uses : actions/checkout@v4
66-
60+
6761 - name : Download artifact
6862 uses : actions/download-artifact@v4
6963 with :
7064 name : mineru-skill-release
7165 path : dist/
72-
66+
7367 - name : Create Release
7468 uses : softprops/action-gh-release@v2
7569 with :
7670 files : dist/*
7771 generate_release_notes : true
7872 body : |
7973 ## MinerU Skill ${{ github.ref_name }}
80-
74+
8175 ### Installation
82-
76+
8377 ```bash
84- # Clone to your skills directory
8578 git clone https://github.com/Nebutra/MinerU-Skill.git ~/openclaw-skills/mineru/
86-
87- # Or download the release package
88- unzip mineru-skill.zip -d ~/openclaw-skills/mineru/
8979 ```
90-
80+
9181 ### Quick Start
92-
82+
9383 ```bash
9484 export MINERU_TOKEN="your-token"
9585 python3 scripts/mineru_v2.py --dir ./pdfs/ --output ./output/ --resume
9686 ```
97-
87+
9888 ---
99-
89+
10090 [📖 Documentation](https://github.com/Nebutra/MinerU-Skill#readme)
0 commit comments