28 lines
760 B
YAML
28 lines
760 B
YAML
name: PyInstaller Action
|
|
uses: Martin005/pyinstaller-action@v1.2.0
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
inputs:
|
|
logLevel:
|
|
description: 'Log level'
|
|
required: true
|
|
default: 'warning'
|
|
type: choice
|
|
options:
|
|
- info
|
|
- warning
|
|
- debug
|
|
jobs:
|
|
pyinstaller-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create Executable
|
|
uses: sayyid5416/pyinstaller@v1
|
|
with:
|
|
python_ver: '3.6'
|
|
spec: 'src/build.spec'
|
|
requirements: 'src/requirements.txt'
|
|
upload_exe_with_name: 'My executable'
|
|
options: --onefile, --name "My App", --windowed, |