Add GitHub Actions workflow for building Windows EXE

This workflow builds a Windows executable for the WoW Modernization Tool using PyInstaller and creates a GitHub release.
This commit is contained in:
Dusk-92
2026-06-09 11:24:26 +02:00
committed by GitHub
parent 11cb9ce00a
commit 74b71f089a
+41
View File
@@ -0,0 +1,41 @@
name: Build Windows EXE
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build EXE
run: >
pyinstaller
--noconsole
--onefile
--icon=PurpleWowLogo.ico
--add-data "Payload;Payload"
--add-data "vanilla-tweaks.exe;."
--name "WoW_Modernization_Tool"
setup_tool.py
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/WoW_Modernization_Tool.exe
name: "WoW Modernization Tool ${{ github.ref_name }}"
body: "Release automatique générée par GitHub Actions."