Skip to content

Commit

Permalink
Bump version to 2.3.1 + Include AutoSplit version in generated artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Feb 4, 2025
1 parent a7c0a4d commit f8768f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ jobs:
os: [windows-latest, ubuntu-22.04]
python-version: ["3.13"]
include:
# I had some Qt Wayland issues on 3.12 for ubuntu-22.04 iirc. TODO: test it
# I had some Qt Wayland issues on 3.12 for ubuntu-22.04
# This should be fixed with QT_QPA_PLATFORM=xcb, but keeping it until next major upgrade
- os: ubuntu-22.04
python-version: "3.11"
- os: ubuntu-22.04
python-version: "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up uv for Python ${{ matrix.python-version }}
Expand All @@ -92,7 +91,7 @@ jobs:
cache-dependency-glob: "uv.lock"
python-version: ${{ matrix.python-version }}
# https://github.com/pyinstaller/pyinstaller/issues/9012
- name: Set up uv for Python ${{ matrix.python-version }}
- name: Set up uv
if: ${{ matrix.os == 'ubuntu-22.04' }}
uses: astral-sh/setup-uv@v5
with:
Expand All @@ -109,10 +108,18 @@ jobs:
shell: pwsh
- name: Add empty profile
run: echo "" > dist/settings.toml
- name: Extract AutoSplit version
id: autosplit_version
run: |
$Env:AUTOSPLIT_VERSION=uv run python -c "import utils; print(utils.AUTOSPLIT_VERSION)"
echo "AUTOSPLIT_VERSION=$Env:AUTOSPLIT_VERSION" >> $Env:GITHUB_OUTPUT
shell: pwsh
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: AutoSplit for ${{ matrix.os }} (Python ${{ matrix.python-version }})
name: >
AutoSplit v${{ steps.autosplit_version.outputs.AUTOSPLIT_VERSION }}
for ${{ matrix.os }} (Python ${{ matrix.python-version }})
path: |
dist/AutoSplit*
dist/settings.toml
Expand Down
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ def run_tesseract(png: bytes):

# Shared strings
# Check `excludeBuildNumber` during workflow dispatch build generate a clean version number
AUTOSPLIT_VERSION = "2.3.0" + (f"-{AUTOSPLIT_BUILD_NUMBER}" if AUTOSPLIT_BUILD_NUMBER else "")
AUTOSPLIT_VERSION = "2.3.1" + (f"-{AUTOSPLIT_BUILD_NUMBER}" if AUTOSPLIT_BUILD_NUMBER else "")
"""AutoSplit Version number"""
GITHUB_REPOSITORY = AUTOSPLIT_GITHUB_REPOSITORY

0 comments on commit f8768f4

Please sign in to comment.