https://github.com/bhznjns/pystand-build
Automatically deploy your Python project with PyStand!
https://github.com/bhznjns/pystand-build
continuous-deployment pystand python-deployment
Last synced: 4 months ago
JSON representation
Automatically deploy your Python project with PyStand!
- Host: GitHub
- URL: https://github.com/bhznjns/pystand-build
- Owner: BHznJNs
- Created: 2025-08-09T02:31:48.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-11-02T02:44:21.000Z (7 months ago)
- Last Synced: 2025-11-02T04:15:19.459Z (7 months ago)
- Topics: continuous-deployment, pystand, python-deployment
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyStand build
Automatically deploy your Python project with PyStand!
## Use Example
```yaml
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 `/`
- **Files** → copied to the root of `` |
### 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..outputs.build-directory }}`. |