chore(release): v2.2.7

This commit is contained in:
matt 2025-09-10 08:01:51 -07:00
parent 6fe8a7af89
commit 45658d0b72
6 changed files with 247 additions and 87 deletions

View file

@ -7,45 +7,49 @@ on:
workflow_dispatch:
jobs:
build-windows:
name: Build Windows EXE
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
- name: Setup Python
uses: actions/setup-python@v5.6.0
with:
python-version: '3.11'
- name: Install dependencies
shell: powershell
run: |
python -m pip install --upgrade pip wheel setuptools
if (Test-Path 'requirements.txt') { pip install -r requirements.txt }
pip install pyinstaller
- name: Build executable (PyInstaller)
shell: powershell
run: |
# Build using spec for reliable packaging
pyinstaller mtg_deckbuilder.spec
if (!(Test-Path dist/mtg-deckbuilder.exe)) {
Write-Host 'Spec build failed; retrying simple build with --paths code'
pyinstaller --onefile --name mtg-deckbuilder --paths code code/main.py
}
if (!(Test-Path dist/mtg-deckbuilder.exe)) { throw 'Build failed: dist/mtg-deckbuilder.exe not found' }
- name: Upload artifact (Windows EXE)
uses: actions/upload-artifact@v4.6.2
with:
name: mtg-deckbuilder-windows
path: dist/mtg-deckbuilder.exe
# Windows executable build temporarily disabled. To re-enable:
# 1. Uncomment the 'build-windows' job below.
# 2. Add 'needs: build-windows' back to the 'release' job.
# 3. Re-add the artifact download & file attachment steps.
# Reason: Current releases do not ship a Windows EXE; focusing on container / source distribution.
#
# build-windows:
# name: Build Windows EXE
# runs-on: windows-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v5.0.0
#
# - name: Setup Python
# uses: actions/setup-python@v5.6.0
# with:
# python-version: '3.11'
#
# - name: Install dependencies
# shell: powershell
# run: |
# python -m pip install --upgrade pip wheel setuptools
# if (Test-Path 'requirements.txt') { pip install -r requirements.txt }
# pip install pyinstaller
#
# - name: Build executable (PyInstaller)
# shell: powershell
# run: |
# pyinstaller mtg_deckbuilder.spec
# if (!(Test-Path dist/mtg-deckbuilder.exe)) {
# Write-Host 'Spec build failed; retrying simple build with --paths code'
# pyinstaller --onefile --name mtg-deckbuilder --paths code code/main.py
# }
# if (!(Test-Path dist/mtg-deckbuilder.exe)) { throw 'Build failed: dist/mtg-deckbuilder.exe not found' }
#
# - name: Upload artifact (Windows EXE)
# uses: actions/upload-artifact@v4.6.2
# with:
# name: mtg-deckbuilder-windows
# path: dist/mtg-deckbuilder.exe
release:
runs-on: ubuntu-latest
needs: build-windows
permissions:
contents: write
steps:
@ -69,19 +73,11 @@ jobs:
echo "version=$VERSION_REF" >> $GITHUB_OUTPUT
echo "notes_file=RELEASE_NOTES.md" >> $GITHUB_OUTPUT
- name: Download build artifacts
uses: actions/download-artifact@v5.0.0
with:
name: mtg-deckbuilder-windows
path: artifacts
- name: Create GitHub Release
uses: softprops/action-gh-release@v2.3.2
with:
tag_name: ${{ steps.notes.outputs.version }}
name: ${{ steps.notes.outputs.version }}
body_path: ${{ steps.notes.outputs.notes_file }}
files: |
artifacts/mtg-deckbuilder.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}