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
name: Build and deploy GUI app | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install Pillow requests pyinstaller | |
- name: Build for Windows | |
run: | | |
pyinstaller --onefile --windowed main.py | |
mv dist/main.exe dist/Heroes3MapLiker_windows.exe | |
- name: Build for Linux | |
run: | | |
pyinstaller --onefile --windowed main.py | |
mv dist/main dist/Heroes3MapLiker_linux | |
- name: Build for macOS | |
run: | | |
pyinstaller --onefile --windowed main.py | |
mv dist/main dist/Heroes3MapLiker_macos | |
- name: Run Tests | |
run: python tests.py | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: builds | |
path: | | |
dist/Heroes3MapLiker_windows.exe | |
dist/Heroes3MapLiker_linux | |
dist/Heroes3MapLiker_macos |