31 lines
664 B
YAML
31 lines
664 B
YAML
name: Build Windows EXE
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.14' # Match your local python version
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install arcade pygame pyinstaller
|
|
|
|
- name: Build with PyInstaller
|
|
run: |
|
|
pyinstaller --onefile --noconsole --add-data "res;res" src/main.py
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Windows-Game-EXE
|
|
path: dist/main.exe
|