Files
kaizen-agentic/.gitea/workflows/publish-python-package.yml
tegwick 4daf8635d1
Some checks failed
ci / test (push) Failing after 6s
fix: haskelseed-native Gitea Actions without GitHub marketplace
Replace actions/checkout and setup-python with internal git clone and
system python3. Drops CI matrix to a single job on the self-hosted runner.
2026-06-16 03:25:41 +02:00

35 lines
913 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 pip install --upgrade pip build twine
python3 -m build
python3 -m twine check dist/*
python3 -m twine upload \
--repository-url https://gitea.coulomb.social/api/packages/coulomb/pypi \
dist/*