Skip to content

2026.203.0

2026.203.0 #1

Workflow file for this run

name: Build & Release Executables
on:
release:
types: [ created ]
permissions:
contents: write
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- os: macos
runner: macos-latest
ext: ""
- os: windows
runner: windows-latest
ext: ".exe"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install pyinstaller
run: pip install pyinstaller
- name: Build with PyInstaller
run: |
pyinstaller --onefile --noconsole --clean --add-data "icon.png:." main.py
shell: bash
- name: Rename binary
run: |
mv dist/main${{ matrix.ext }} wp-changer-${{ matrix.os }}${{ matrix.ext }}
shell: bash
- name: Make binary executable (macOS)
if: matrix.os == 'macos'
run: chmod +x board-game-client-${{ matrix.os }}
- name: Upload binary to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: wp-changer-${{ matrix.os }}${{ matrix.ext }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}