Files
account_do/doc/publishing.rst
T

35 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2026-07-22 19:15:36 -04:00
Publishing
==========
2026-07-22 19:22:43 -04:00
Every pushed commit builds, validates, and publishes the package to the Gitea
PyPI-compatible package registry. The workflow intentionally does not use
``actions/upload-artifact`` because current Gitea Actions runners do not support
the GitHub artifact API required by ``upload-artifact@v4``.
2026-07-22 19:21:03 -04:00
The publishing workflow creates a CI-only package version by appending the run
number to the module version from ``tryton.cfg``. For example, a module version
of ``8.0.0`` is published as ``8.0.0.post123`` on run number ``123``.
This is necessary because Gitea's PyPI-compatible registry is a custom package
repository for Twine and does not support ``twine upload --skip-existing``.
2026-07-22 19:15:36 -04:00
Required repository secrets:
* ``GITEA_PACKAGE_USER``
* ``GITEA_PACKAGE_TOKEN``
2026-07-22 19:22:43 -04:00
Publish a release branch:
2026-07-22 19:15:36 -04:00
.. code-block:: console
2026-07-22 19:21:03 -04:00
git switch -c 8.0.0
git push origin 8.0.0
2026-07-22 19:15:36 -04:00
Install from Gitea:
.. code-block:: console
pip install \
--index-url https://gitea.joseagrc.com/api/packages/tryton-do/pypi/simple \
trytond_account_do