更新CI配置:升级Python版本并添加发布条件 (#20)

* 将CI工作流的Python版本从3.11升级到3.12
* 为所有发布步骤添加仓库条件检测,避免在fork仓库的PR中触发发布

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
This commit is contained in:
wszqkzqk 2025-06-21 22:06:19 +08:00 committed by GitHub
parent 268b32bba5
commit 72915de297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
python_version:
- "3.11"
- "3.12"
name: Windows Python ${{ matrix.python_version }}
steps:
- uses: actions/checkout@v2
@ -46,6 +46,7 @@ jobs:
-i ./pypvz.ico
- name: Release the version built by pyinstaller
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ncipollo/release-action@v1
with:
allowUpdates: true
@ -77,6 +78,7 @@ jobs:
pypvz.py
- name: Release the version built by nuitka
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ncipollo/release-action@v1
with:
allowUpdates: true
@ -91,7 +93,7 @@ jobs:
fail-fast: false
matrix:
python_version:
- "3.11"
- "3.12"
name: Ubuntu Python ${{ matrix.python_version }}
steps:
- name: 🛎️ Checkout
@ -131,6 +133,7 @@ jobs:
pypvz.py
- name: Release the version built by nuitka
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ncipollo/release-action@v1
with:
allowUpdates: true