-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a30cf3
commit 20613eb
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
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 |