This command publishes a packaged project to the registry.
You need to specify the targets you want to publish, for example:
$ nitrile publish --targets=linux-x64,linux-x86,windows-x64
Concretely, it performs the following steps:
nitrile-metadata.jsonwith information used by the registry.
nitrile-metadata.jsonand the package tarballs from
nitrile packageto a GitLab generic package.
Ping the registry to fetch new information about the package.
This command should only be used in GitLab CI, because it depends on variables that are set here.
Typically, you should run
nitrile publish in a last, separate stage in CI,
which gets the package files as CI artifacts from previous stages. See the
CI configuration examples.
However, if there is only one build step you could also run
in that job.