Files
kaizen-agentic/.gitea/workflows/publish-python-package.yml
tegwick 9d2bab9a38
Some checks failed
ci / test (push) Failing after 37s
fix: use build venv in Gitea publish workflow (PEP 668)
Haskelseed runner blocks system-wide pip installs. Create an isolated
.build-venv for build/twine and document workflow_dispatch API path.
2026-06-16 07:15:57 +02:00

37 lines
984 B
YAML

name: Publish Python package
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
publish:
runs-on: haskelseed
steps:
- name: Check out source
env:
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
run: |
git clone --depth 1 \
"https://tegwick:${PACKAGE_TOKEN}@gitea.coulomb.social/coulomb/kaizen-agentic.git" \
repo
cd repo
git checkout "${{ gitea.sha }}"
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PACKAGE_USER }}
TWINE_PASSWORD: ${{ secrets.PACKAGE_TOKEN }}
run: |
cd repo
python3 -m venv .build-venv
. .build-venv/bin/activate
python -m pip install --upgrade pip build twine
python -m build
python -m twine check dist/*
python -m twine upload \
--repository-url https://gitea.coulomb.social/api/packages/coulomb/pypi \
dist/*