diff --git a/.github/workflows/reusable-release-skill.yaml b/.github/workflows/reusable-release-skill.yaml index 40850d4..519430f 100644 --- a/.github/workflows/reusable-release-skill.yaml +++ b/.github/workflows/reusable-release-skill.yaml @@ -34,14 +34,20 @@ jobs: steps: - uses: http://120.25.191.12:3000/admin/actions-checkout@v4 - # Pin PyArmor 8.5.3 — matches desktop python_env; PyArmor 9.x trial often fails on multi-file gen. + # Pin PyArmor 8.5.3 — PyArmor 9.x trial hits "out of license" on multi-file gen in CI. - name: Setup Tools run: pip install "pyarmor==8.5.3" requests python-frontmatter --break-system-packages -i https://pypi.tuna.tsinghua.edu.cn/simple + # One script per pyarmor invocation (same pattern as desktop tooling); avoids trial limits on batch gen. - name: Encrypt Source Code run: | mkdir -p dist/package - pyarmor gen --platform "${PYARMOR_PLATFORM}" -O dist/package scripts/*.py + set -euo pipefail + for f in scripts/*.py; do + if [ -f "$f" ]; then + pyarmor gen --platform "${PYARMOR_PLATFORM}" -O dist/package "$f" + fi + done cp SKILL.md dist/package/ - name: Parse Metadata and Pack