Skip to content

Commit

Permalink
Build workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickosh committed Nov 25, 2022
1 parent 028c7cb commit 6f58a01
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,14 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build app with PyInstaller
shell: bash
run: |
pip install PyInstaller
pyinstaller --onefile --noconsole --name=mfnp src/mfnp/main.py
if [ "$RUNNER_OS" == "Linux" ]; then
cp src/mfnp/presend.jcl dist/
cp src/mfnp/config.ini dist/
elif [ "$RUNNER_OS" == "Windows" ]; then
copy src/mfnp/presend.jcl dist/
copy src/mfnp/config.ini dist/
else
echo "$RUNNER_OS not supported"
exit 1
fi
cp src/mfnp/presend.jcl dist/
cp src/mfnp/config.ini dist/
- uses: actions/upload-artifact@v3.1.1
with:
name: mfnp-$RUNNER_OS
name: mfnp-${{ runner.os }}
path: dist/

0 comments on commit 6f58a01

Please sign in to comment.