Publish Package to GitLab

Hi,

we work within 2 enviroments that come with their own Orchestrator.
The only thing that connects those environments is our GitLab Instance for sharing code. With this, we always have to publish Libraries and Object Repositories twice. Once for each environment.
To Avoid this, we would like to publish the NuGet Packages to our GitLab Package Registry.
We changed the Publish Options to following:
Publish to: “Custom”
Custom URL:
API Key: <Access Token generated in GitLab with Read/Write rights for Packages>

When publishing this way, we get a StatusCode 401 (unauthorized).

Does anyone know how to solve this or where a proper documentation for publishing to Custom package feeds can be found?

BR

maybe we have missunderstood your statement. We would publish only 1 time. And later transfer/upload to the other environment