使用dev进行开发,master进行发布

This commit is contained in:
wszqkzqk 2022-11-04 10:52:05 +08:00
parent 3ef4570334
commit 8ae6b88d8a
2 changed files with 14 additions and 11 deletions

View File

@ -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:

View File

@ -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等外部环境开箱即用