Files
account_do/doc/publishing.rst
T

32 lines
889 B
ReStructuredText

Publishing
==========
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``.
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.
Required repository secrets:
* ``GITEA_PACKAGE_USER``
* ``GITEA_PACKAGE_TOKEN``
Publish a release branch:
.. code-block:: console
git switch -c 8.0.0
git push origin 8.0.0
Install from Gitea:
.. code-block:: console
pip install \
--index-url https://gitea.joseagrc.com/api/packages/tryton-do/pypi/simple \
trytond_account_do