mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-22 04:50:46 +02:00
feat(owned-cards): add owned-only workflow, multi-file parsing, and recommendations export\n\n- Prompt to use only owned cards (gated by presence of lists)\n- Support .txt/.csv owned lists, multi-select; commander exempt\n- Owned-only filtering + add guard; recommendations CSV/TXT when incomplete\n- CSV Owned column when not owned-only\n- Docs and Docker updated (owned_cards + config mounts)\n- CI: Windows EXE on tag; Docker Hub tag fix (no major.minor)\n- Changelog added; RELEASE_NOTES.md ignored
This commit is contained in:
parent
5f922835a6
commit
acfb29cafb
16 changed files with 480 additions and 261 deletions
40
.github/workflows/github-release.yml
vendored
40
.github/workflows/github-release.yml
vendored
|
@ -7,8 +7,40 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
name: Build Windows EXE
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
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 --onefile --name mtg-deckbuilder 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
|
||||
with:
|
||||
name: mtg-deckbuilder-windows
|
||||
path: dist/mtg-deckbuilder.exe
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-windows
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
@ -32,11 +64,19 @@ jobs:
|
|||
echo "version=$VERSION_REF" >> $GITHUB_OUTPUT
|
||||
echo "notes_file=RELEASE_NOTES.md" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: mtg-deckbuilder-windows
|
||||
path: artifacts
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue