Skip to content

Commit

Permalink
Create PyInstaller.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed May 9, 2024
1 parent 7a30cf3 commit 20613eb
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/PyInstaller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build-package

# Only run this when the master branch changes
on:
push:
workflow_dispatch:
#tags:
# - "v*"

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install redwrench
shell: bash -l {0}
run: |
pip3 install .
- name: install PyInstaller
shell: bash -l {0}
run: |
pip3 install pyinstaller==5.9.0
- name: Build Pyinstaller .exe (macOS and Linux)
if: matrix.os != 'windows-latest'
shell: bash -l {0}
run: |
pyinstaller -n redwrench --onefile --windowed dosview.py
- name: Build Pyinstaller .exe (Windows)
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: |
pyinstaller -n redwrench --onefile app.py
- uses: vimtor/action-zip@v1
with:
files: dist/
recursive: false
dest: ${{ matrix.os }}-${{github.ref_name}}.zip
- uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.os }}-${{github.ref_name}}.zip

0 comments on commit 20613eb

Please sign in to comment.