Skip to content

Create windows executable.yml #1

Create windows executable.yml

Create windows executable.yml #1

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build with PyInstaller
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.3' # specify the Python version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build with PyInstaller
run: |
pyinstaller --onefile Smelt.py # replace with your spec file if you have one
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/