From 72915de297806f86b125806b300ca63e244b4f9d Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Sat, 21 Jun 2025 22:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0CI=E9=85=8D=E7=BD=AE=EF=BC=9A?= =?UTF-8?q?=E5=8D=87=E7=BA=A7Python=E7=89=88=E6=9C=AC=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=91=E5=B8=83=E6=9D=A1=E4=BB=B6=20(#20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 将CI工作流的Python版本从3.11升级到3.12 * 为所有发布步骤添加仓库条件检测,避免在fork仓库的PR中触发发布 Signed-off-by: Zhou Qiankang --- .github/workflows/build-pr.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index ca3c676..f4b1335 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -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