Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 committed Aug 7, 2024
1 parent 8351ce4 commit 472c909
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 317 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: [3.7, 3.8, 3.9]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -47,17 +47,17 @@ jobs:
xcopy $env:pythonLocation\lib\site-packages\sc2reader\* sc2reader /s /i
ls
pip uninstall sc2reader -y
if: matrix.os == 'windows-latest' && matrix.python-version == '3.7'
if: matrix.os == 'windows-latest' && matrix.python-version == '3.12'

- name: Build windows binary
run: |
poetry run pyinstaller ReplayRenamer.py --onefile --clean --noconfirm --add-data "sc2reader;sc2reader"
if: matrix.os == 'windows-latest' && matrix.python-version == '3.7'
if: matrix.os == 'windows-latest' && matrix.python-version == '3.12'

- name: List contents of dist folder
run: |
ls dist
if: matrix.os == 'windows-latest' && matrix.python-version == '3.7'
if: matrix.os == 'windows-latest' && matrix.python-version == '3.12'

# TODO Run .exe file with arguments

Expand All @@ -72,7 +72,7 @@ jobs:
release_name: Windows Release
draft: true
prerelease: false
if: matrix.os == 'windows-latest' && matrix.python-version == '3.7'
if: matrix.os == 'windows-latest' && matrix.python-version == '3.12'

- uses: actions/[email protected]
env:
Expand All @@ -82,11 +82,11 @@ jobs:
asset_path: ./dist/ReplayRenamer.exe
asset_name: ReplayRenamer.exe
asset_content_type: application/zip
if: matrix.os == 'windows-latest' && matrix.python-version == '3.7'
if: matrix.os == 'windows-latest' && matrix.python-version == '3.12'

- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
if: matrix.os == 'windows-latest' && matrix.python-version == '3.7'
if: matrix.os == 'windows-latest' && matrix.python-version == '3.12'
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ venv.bak/
# mypy
.mypy_cache/

.idea/
settings.json
.vscode
.idea
settings.json
Loading

0 comments on commit 472c909

Please sign in to comment.