Add PyPI build workflow and docs

Introduce a new GitHub Actions workflow (build-pypi.yml) to build Python Wheel and Source Distribution and upload them as release assets. Integrate the PyPI job into the release-all workflow and update .github/CI_CD_README.md to document the PyPI artifacts and the new build-pypi.yml entry. The workflow uses Python 3.13, installs build tooling, runs build_release.py, and uploads dist/* via softprops/action-gh-release.
This commit is contained in:
oop7
2026-02-08 19:39:18 +02:00
parent 04e043c689
commit 96cade3226
3 changed files with 63 additions and 2 deletions
+49
View File
@@ -0,0 +1,49 @@
name: Build PyPI Package
on:
workflow_dispatch:
inputs:
version:
description: 'Version name for the release (e.g., 1.0.0)'
required: true
type: string
workflow_call:
inputs:
version:
description: 'Version name for the release (e.g., 1.0.0)'
required: true
type: string
permissions:
contents: write
jobs:
build-pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build PyPI package
run: |
python build_release.py
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ inputs.version || github.event.inputs.version }}
files: |
dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+6
View File
@@ -29,3 +29,9 @@ jobs:
with:
version: ${{ inputs.version }}
secrets: inherit
release-pypi:
uses: ./.github/workflows/build-pypi.yml
with:
version: ${{ inputs.version }}
secrets: inherit