修改构建上传方式

This commit is contained in:
辉鸭蛋
2025-08-21 02:17:52 +08:00
parent 1f71e6f36d
commit fc4a6df3c6
2 changed files with 109 additions and 0 deletions

View File

@@ -537,3 +537,26 @@ jobs:
# 执行上传
python cnb_release.py cnb_config.json
cnb_trigger:
if: github.repository_owner == 'babalae'
needs: [validate, build_dist, build_installer]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Trigger CNB Build
env:
CNB_TOKEN: ${{ secrets.CNB_TOKEN }}
run: |
python .github/workflows/cnb_trigger.py "$CNB_TOKEN"