GitHub Actions fixing #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11.7' | |
- name: Install PyInstaller | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build executable | |
run: pyinstaller --onefile scripts/create_executable.py | |
- name: List files in dist | |
run: ls -la /home/runner/work/visualspectra/visualspectra/dist/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Create VisualSpectra Executable | |
path: /home/runner/work/visualspectra/visualspectra/dist/create_executable |