Skip to content

BHznJNs/pystand-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyStand build

Automatically deploy your Python project with PyStand!

Use Example

jobs:
  build:
    runs-on: windows-latest
      - name: Checkout
        uses: actions/checkout@v4

      - name: Build Python Application Standalone Package
        id: pystand-build
        uses: BHznJNs/pystand-build@release-6
        with:
          application-name: "YourApplicationName"
          python-version: "3.11.9"
          requirements-path: "backend/requirements.txt"
          included-files: |
            backend/ # this is the python source directory
            # there can be other assets files or directories here

      - name: Create Zip Archive
        shell: bash
        run: |
          build_path="${{ steps.pystand-build.outputs.build-directory }}"
          (cd "$build_path" && 7z a -tzip "$RUNNER_TEMP/YouApplicationName.zip" .)

      # upload package with `${{ runner.temp }}/YouApplicationName.zip`

Parameters

Inputs

Parameter Type Required Default Description
application-name string The application name of standalone package.
application-type string GUI Application type. Must be GUI or CLI.
python-version string 3.11.9 The target Python embedded version to use.
pystand-entry-file string PyStand.py The entry file path for PyStand.
requirements-path string The path to the requirements.txt file.
included-files string Newline-separated list of files/directories.
- Directories → copied to <build-directory>/<dir-name>
- Files → copied to the root of <build-directory>

Outputs

Name Type Description
build-directory string Absolute path to the fully-prepared build directory.
Use it for archiving, installer generation, etc.
Retrieve with ${{ steps.<id>.outputs.build-directory }}.

About

Automatically deploy your Python project with PyStand!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages