Files
UmbraEdit/.github/workflows/part_pypi.yml
B.D. Murphy 70d74e675f chore: rename project from novelWriter to UmbraEdit
- Rename project name and package: novelWriter -> UmbraEdit, novelwriter -> umbraedit
- Rename entry script novelWriter.py -> UmbraEdit.py
- Rename package directory novelwriter/ -> umbraedit/
- Rename i18n translation sources nw_*.ts -> ue_*.ts
- Rename packaging files (appdata, project xml template)
- Update all imports, references, docs, workflows, tests and build config
- Update pyproject.toml project name, GUI script and URLs
- Preserve full upstream git history; origin repointed below
2026-11-05 07:08:12 -08:00

67 lines
1.4 KiB
YAML

name: Part PyPI
on:
workflow_call:
inputs:
publish:
required: false
type: boolean
default: false
jobs:
buildPackage:
name: Build PyPI Package
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Download Assets Artifact
uses: actions/download-artifact@v8
with:
name: nw-assets
path: umbraedit/assets
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.2.0
with:
python-version: "3.14"
enable-cache: true
- name: Build Package
run: uv run pkgutils.py build-pypi
- name: Upload Artifacts
uses: actions/upload-artifact@v7
with:
name: nw-pypi
path: |
dist_pypi/*.whl
dist_pypi/*.tar.gz
if-no-files-found: error
retention-days: 14
publishPackage:
name: Publish to PyPI
needs: buildPackage
if: ${{ inputs.publish }}
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
contents: read
steps:
- name: Download Package Artifact
uses: actions/download-artifact@v8
with:
name: nw-pypi
path: dist_pypi
- name: Install UV
uses: astral-sh/setup-uv@v10.2.0
- name: Publish Package
run: uv publish dist_pypi/*