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.
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.