Bug fixes and updates #82
Workflow file for this run
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
# TODO: Should we use --onefile for the portable version (although the executable starts slower with --onefile as oppose to --onedir) | |
name: Builds | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
linux_build: | |
name: Linux Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install Dependencies and Build Dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt pyinstaller | |
- name: Build | |
run: | | |
cd src/ | |
pyinstaller \ | |
--name "BibleNotify" \ | |
--windowed --onedir \ | |
--icon assets/icon.ico \ | |
main.py | |
- name: Upload the Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: Bible Notify Linux | |
path: "src/dist/BibleNotify/*" | |
- name: Zip | |
uses: papeloto/action-zip@v1 | |
with: | |
files: "src/dist/BibleNotify/" | |
dest: BibleNotify-Linux.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: BibleNotify-Linux.zip | |
macos_build: | |
name: macOS Build | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install Dependencies and Build Dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt pillow pyinstaller | |
- name: Build | |
run: | | |
cd src/ | |
pyinstaller \ | |
--name "BibleNotify" \ | |
--windowed --onedir \ | |
--icon assets/icon.ico \ | |
main.py | |
- name: Upload the Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: Bible Notify macOS | |
path: "src/dist/BibleNotify/" | |
- name: Zip | |
uses: papeloto/action-zip@v1 | |
with: | |
files: "src/dist/BibleNotify/" | |
dest: BibleNotify-macOS.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: BibleNotify-macOS.zip | |
windows_build: | |
name: Windows Build | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install Dependencies and Build Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt pyinstaller | |
- name: Build | |
run: | | |
cd src/ | |
pyinstaller --name "BibleNotify" --windowed --onedir --icon assets/icon.ico main.py | |
- name: Upload the Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: Bible Notify Windows | |
path: "src/dist/BibleNotify/*" | |
- name: Zip | |
uses: papeloto/action-zip@v1 | |
with: | |
files: "src/dist/BibleNotify/" | |
dest: BibleNotify-Windows.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: BibleNotify-Windows.zip |