Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
hard-drive

GitHub Action

Versatile PyInstaller

v1.0.2

Versatile PyInstaller

hard-drive

Versatile PyInstaller

Customisable GitHub Action to package python scripts into executables for different OS's

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Versatile PyInstaller

uses: sayyid5416/[email protected]

Learn more about this action in sayyid5416/pyinstaller

Choose a version

Check all available usable tags here
You can also use any major tags like @v1 for any @v1.*.*

PyInstaller

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

Inputs & Outputs

  • Some inputs are required, while rest are optional.
  • Check all inputs here.
  • Check all outputs here.

Pre-requisites

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

Examples

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'