================================================================================
                         Package publishing in forgejo
================================================================================

Full documentation at https://forgejo.org/docs/latest/user/packages

Go to configuration/Applications to get an access token on the web interface

Basic usage:
$ curl --user yestax:<access_token> \
  --upload-file <deb_file>.deb \
  https://git.zeromaximum.com/api/packages/yestax/debian/pool/trixie/main/upload

--------------------------------------------------------------------------------
With setup-packaging

$ forgejo-publish <package_type> <package> [ <package> ... ]

package type must be rpm or deb.
package suffix must equal package type.

repository configuration is in /etc/setup/packaging/publish.conf
DEB_URLS, RPM_URLS: Upload URLs for each type of supported package (see official
documentation for exact format).
FORGEJO_URL: URL of the forgejo instance.
FORGEJO_USER: User that will be used for storing the packages.
FORGEJO_TOKEN: Token to connect with the user. Must be either be exported or
assigned on the command line.

Ex: FORGEJO_TOKEN="<my_token>" forgejo-publish deb /build/*.deb
