Skip to content

Creating Executable of project #14

Creating Executable of project

Creating Executable of project #14

Workflow file for this run

name: Deploy app and create executables
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
pip install yahooquery
pip install yahooquery tkmacosx
- name: Create executable
run: |
if [ $RUNNER_OS == "Linux" ]; then
pyinstaller --name stock-analysis --icon=assets/charticon2ICO.ico user_interface.py
elif [ $RUNNER_OS == "macOS" ]; then
pyinstaller --name stock-analysis --icon=assets/charticon2ICO.ico user_interface.py
fi
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: stock-analysis-${{ matrix.os }}
path: |
dist/user_interface
dist/user_interface.exe
dist/user_interface.app
dist/user_interface.bundle
dist/user_interface.zip