更新小说爬虫版本至 v.25.07.07,增强输出功能,新增对 br 标签的处理逻辑,优化配置文件,修复若干问题 #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dev Package and Upload(dev) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - 'package/config.yml' | |
| jobs: | |
| package: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, windows-11-arm] | |
| runs-on: os.${{ matrix.os }} | |
| # 添加必要的权限 | |
| permissions: | |
| contents: write # 允许创建发布和上传资源 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # 获取所有历史记录以便生成标签 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: UPX Setup(Windows amd64) | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: | | |
| mkdir upx | |
| curl -o upx/upx.exe https://assets.ksable.top/github/upx/upx/v5.0.1/windows-amd64/upx.exe | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller pyyaml | |
| - name: Fix Python encoding (Windows) | |
| run: | | |
| # 设置Python使用UTF-8编码 | |
| [System.Environment]::SetEnvironmentVariable('PYTHONUTF8', '1', 'Process') | |
| # 设置控制台编码为UTF-8 | |
| chcp.com 65001 | |
| - name: Run packaging script | |
| run: | | |
| cd package | |
| python build.py config.yml | |
| - name: Upload files with wildcards | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Artifact | |
| path: | | |
| ./dist/*.exe | |
| ./dist/*.zip | |
| retention-days: 90 | |
| if-no-files-found: warn | |
| overwrite: true |