fix(ci): resolve mypy type-ignore codes and windowed-EXE stdout crash #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install runtime and build dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Extract bare version (strip leading v) | |
| id: ver | |
| run: echo "version=$('${{ github.ref_name }}'.TrimStart('v'))" >> $env:GITHUB_OUTPUT | |
| - name: Generate icons | |
| run: python scripts/generate_icons.py | |
| - name: Build Windows artifact | |
| run: python scripts/build.py | |
| - name: Smoke test — --version | |
| run: | | |
| & dist\EleitorUM\EleitorUM.exe --version 2>&1 | |
| if ($LASTEXITCODE -ne 0) { | |
| Write-Error "EleitorUM.exe --version exited $LASTEXITCODE" | |
| exit 1 | |
| } | |
| Write-Host "Smoke test passed (exit code 0)" | |
| - name: Publish GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| EleitorUM-${{ steps.ver.outputs.version }}-win64.zip | |
| EleitorUM-${{ steps.ver.outputs.version }}-win64.zip.sha256 |