You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Versatile PyInstaller
v1.0.2
Check all available usable tags here
You can also use any major tags like @v1
for any @v1.*.*
This action packages the python source code into executables using pyinstaller
- Use this action in your workflow to create & upload executables to GitHub (as artifacts)
- Executable will be based on
jobs.<job-id>.runs-on=<your-os-name>
you uses in your workflow (see examples) - Use inputs to configure this action
- Use outputs to get information from this action
Generate .spec file
- Clone your repository to your PC
- Install pyinstaller:
pip install pyinstaller
- Run pyinstaller to generate
.spec
file:pyinstaller <appname>.py
- Modify
.spec
file according to your needs - Push that
.spec
file to your repo
jobs:
pyinstaller-build:
runs-on: <windows-latest / ubuntu-latest / ..... etc>
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'