Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
I believe this should work
  • Loading branch information
iwoithe authored Apr 16, 2022
1 parent 87888e2 commit 644903c
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,66 +53,88 @@ jobs:
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "${{ github.workspace }}/BibleNotify-Linux.zip"
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 pyinstaller
- name: Build
run: |
cd src/
pyinstaller \
--name "Bible Notify" \
--name "BibleNotify" \
--windowed --onedir \
--icon assets/icon.ico \
main.py
- name: Upload the Build Artifact
uses: actions/upload-artifact@v3.0.0
with:
name: Bible Notify macOS
path: "src/dist/Bible Notify/"
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: "src/dist/Bible Notify/"
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 "Bible Notify" --windowed --onedir --icon assets/icon.ico main.py
pyinstaller --name "BibleNotify" --windowed --onedir --icon assets/icon.ico main.py
- name: Upload the Build Artifact
uses: actions/upload-artifact@v3.0.0
with:
name: Bible Notify Windows
path: "src/dist/Bible Notify/*"
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: "src/dist/Bible Notify/"
files: BibleNotify-Windows.zip

0 comments on commit 644903c

Please sign in to comment.