From 48c6bec254ebd9dd0da25cd1c04be76dd43da211 Mon Sep 17 00:00:00 2001 From: chendelian <116870791@qq.com> Date: Tue, 24 Mar 2026 11:47:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BD=BF=E7=94=A8=E6=B8=85=E5=8D=8E?= =?UTF-8?q?=E6=BA=90=E5=8A=A0=E9=80=9F=20pip=20=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release_skill.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_skill.yaml b/.github/workflows/release_skill.yaml index e70bfd2..dfd7d2c 100644 --- a/.github/workflows/release_skill.yaml +++ b/.github/workflows/release_skill.yaml @@ -12,7 +12,8 @@ jobs: # 2. 环境及工具准备 - name: Setup Tools - run: pip install pyarmor requests python-frontmatter --break-system-packages + # 优化:使用国内清华源加速安装速度 + run: pip install pyarmor requests python-frontmatter --break-system-packages -i https://pypi.tuna.tsinghua.edu.cn/simple # 3. 【核心步骤】PyArmor 源代码混淆加密 - name: Encrypt Source Code @@ -43,13 +44,11 @@ jobs: # 5. 同步数据库记录 - name: Sync Database (V2.0) - # 核心修复:通过 env 传递复杂 JSON 字符串 env: METADATA_JSON: ${{ steps.build_task.outputs.metadata }} run: | python -c " import requests, json, os - # 从环境变量读取,不涉及脚本注入风险 metadata = json.loads(os.environ['METADATA_JSON']) url = 'https://jc2009.com/api/skill/update' res = requests.post(url, json=metadata)