From 8ae6b88d8a2e5e22cedfc0e17df3aaffab71be18 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Fri, 4 Nov 2022 10:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8dev=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=BC=80=E5=8F=91=EF=BC=8Cmaster=E8=BF=9B=E8=A1=8C=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-pr.yml | 16 ++++++++++------ README.md | 9 ++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index ffc0741..85046e8 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -6,6 +6,9 @@ concurrency: on: pull_request: + push: + branches: + - dev jobs: windows: @@ -50,7 +53,7 @@ jobs: uses: ncipollo/release-action@v1 with: allowUpdates: true - tag: Current.Version.Built.with.Pyinstaller + tag: Dev.Version.Built.with.Pyinstaller artifacts: ./out/*pyinstaller*.exe token: ${{ secrets.GITHUB_TOKEN }} @@ -78,12 +81,13 @@ jobs: -o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-windows-x64.exe ` pypvz.py - # artifact压缩包处上传包含exe和运行环境的文件夹 - - name: "Upload binaries" - uses: actions/upload-artifact@v2 + - name: Release the version built by nuitka + uses: ncipollo/release-action@v1 with: - name: artifact-windows-python-${{ matrix.python_version }} - path: ./out/*.dist + allowUpdates: true + tag: Dev + artifacts: ./out/*nuitka*.exe + token: ${{ secrets.GITHUB_TOKEN }} #linux: diff --git a/README.md b/README.md index e08c56a..4f651fd 100644 --- a/README.md +++ b/README.md @@ -61,17 +61,16 @@ python pypvz.py - 可以在仓库的[`Releases`](https://github.com/wszqkzqk/pypvz/releases)页面中[下载最新版(点击跳转)](https://github.com/wszqkzqk/pypvz/releases/latest)(推荐): - 使用GCC编译 - 程序包含名称、版本等信息 - - 得到的验证最多(相对) + - 得到的验证最多 - 并非每次提交都会更新,更新可能不及时 - 也可以直接下载GitHub Workflow[自动利用Nuitka构建的版本(点击跳转)](https://github.com/wszqkzqk/pypvz/releases/tag/Latest)(推荐): - 使用MSVC编译 - - 每次提交均会更新,保证更新及时 - - 未进行任何测试,存在bug的概率高于前者 - - 可看作本软件的测试版 + - 每次合并提交到主分支时更新 + - 得到的验证较多 + - 服务器构建,编译环境更纯粹,冗余更少,体积更小 - 还可以下载GitHub Workflow[自动利用Pyinstaller构建的版本(点击跳转)](https://github.com/wszqkzqk/pypvz/releases/tag/Current.Version.Built.with.Pyinstaller): - 在程序闪退时有报错窗口弹出 - 程序性能较差,不推荐 - - 其他特性同GitHub Workflow自动利用Nuitka构建的版本 - 均仅支持64位操作系统 - 不依赖python、pygame等外部环境,开箱即用