diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a0b570f..704634d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 @@ -53,6 +55,14 @@ jobs: f.write(new_content) print("Successfully synchronized main.py.") + - name: Commit and push version updates back to repository + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add pyproject.toml src/qpypack/main.py + git commit -m "chore: bump version to ${{ github.ref_name }} [skip ci]" || echo "No version changes to commit" + git push origin HEAD:main + - name: Install build dependencies run: | python -m pip install --upgrade pip diff --git a/pyproject.toml b/pyproject.toml index 3676e4e..6b95fbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "qpypack" -version = "2.3.6" +version = "2.3.8" description = "A modern graphical packaging config tool for PyInstaller, Nuitka." readme = "README.md" authors = [ diff --git a/src/qpypack/main.py b/src/qpypack/main.py index 0230945..9db9322 100644 --- a/src/qpypack/main.py +++ b/src/qpypack/main.py @@ -31,7 +31,7 @@ from PySide6.QtGui import QFont, QDragEnterEvent, QDropEvent, QTextCursor, QIcon from PySide6.QtSvg import QSvgRenderer __app_name__ = "QPyPack" -__version__ = "2.3.6" +__version__ = "2.3.8" __author__ = "QwejayHuang" __company__ = "QwejayHuang" __description__ = "自动化 Python 脚本打包构建工具"