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
|
2026-07-22 19:28:11 -04:00
|
|
|
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
|
|
|
|
2026-07-22 19:22:43 -04:00
|
|
|
The publishing workflow uses ``twine upload --skip-existing`` so repeated
|
|
|
|
|
commits with the same package version do not fail. To publish a new package
|
|
|
|
|
artifact, update the module version in ``tryton.cfg`` before pushing.
|
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
|