mirror of
https://github.com/conorluddy/ios-simulator-skill.git
synced 2026-09-14 20:07:12 +08:00
b43bb74b23
* Fix broken CI workflows and stale documentation All three GitHub Actions workflows referenced skill/ — a directory that no longer exists. The actual code lives in ios-simulator-skill/. CI has been silently non-functional since the directory was renamed. - Fix lint.yml, release.yml, validate-version.yml paths - Fix pyproject.toml ruff include paths - Update CLAUDE.md project structure to reflect actual layout - Update DEV.md stats (21+ scripts, ~10k lines) and all path refs - Remove stale SPECIFICATION.md (historical v1.0 planning doc) - Remove examples/ check from release.yml (dir doesn't exist) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix pre-existing ruff lint error in cache_utils.py Add maxsplit=1 to str.split() call (PLC0207). This error was hidden because CI previously pointed at nonexistent skill/ directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
57 lines
2.2 KiB
YAML
57 lines
2.2 KiB
YAML
name: Package and Release Skill
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
package:
|
|
name: Package skill and upload to release
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate skill structure
|
|
run: |
|
|
echo "Validating ios-simulator-skill/ directory structure..."
|
|
test -f ios-simulator-skill/SKILL.md || { echo "ERROR: ios-simulator-skill/SKILL.md not found"; exit 1; }
|
|
test -d ios-simulator-skill/scripts || { echo "ERROR: ios-simulator-skill/scripts directory not found"; exit 1; }
|
|
echo "✅ Skill structure validated successfully"
|
|
|
|
- name: Create skill package
|
|
run: |
|
|
cd ios-simulator-skill
|
|
zip -r ../ios-simulator-skill-${{ github.ref_name }}.zip . \
|
|
-x "*.pyc" \
|
|
-x "__pycache__/*" \
|
|
-x "*.DS_Store"
|
|
cd ..
|
|
echo "📦 Created package: ios-simulator-skill-${{ github.ref_name }}.zip"
|
|
ls -lh ios-simulator-skill-${{ github.ref_name }}.zip
|
|
|
|
- name: Upload package to release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: ios-simulator-skill-${{ github.ref_name }}.zip
|
|
generate_release_notes: true
|
|
fail_on_unmatched_files: true
|
|
|
|
- name: Release summary
|
|
run: |
|
|
echo "## 🎉 Release Complete" >> $GITHUB_STEP_SUMMARY
|
|
echo "" >> $GITHUB_STEP_SUMMARY
|
|
echo "**Version:** ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY
|
|
echo "**Package:** ios-simulator-skill-${{ github.ref_name }}.zip" >> $GITHUB_STEP_SUMMARY
|
|
echo "" >> $GITHUB_STEP_SUMMARY
|
|
echo "### Installation" >> $GITHUB_STEP_SUMMARY
|
|
echo '```bash' >> $GITHUB_STEP_SUMMARY
|
|
echo "# Download and extract to Claude skills directory" >> $GITHUB_STEP_SUMMARY
|
|
echo 'curl -L https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/ios-simulator-skill-${{ github.ref_name }}.zip -o skill.zip' >> $GITHUB_STEP_SUMMARY
|
|
echo 'unzip skill.zip -d ~/.claude/skills/ios-simulator-skill' >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|