Skip to content

Add GitHub Actions workflow for Windows EXE build #1

Add GitHub Actions workflow for Windows EXE build

Add GitHub Actions workflow for Windows EXE build #1

Workflow file for this run

name: Build Windows EXE
on:
push:
branches: [ main ]
pull_request:
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build EXE
run: |
pyinstaller --onefile your_script.py
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: my-windows-exe
path: dist/your_script.exe