Unable to publish Packages using Runners

I have a workflow that creates a python package and publishes it to gitea. For some reason, the uploads failed with this error:

Publishing 2 files https://git.URL/api/packages/WorldTeacher/pypi/

Uploading komconfig-0.1.4-py3-none-any.whl (3.7KiB)

error: Failed to publish `dist/komconfig-0.1.4-py3-none-any.whl` to https://git.URL/api/packages/WorldTeacher/pypi/

Caused by: Upload failed with status code 401 Unauthorized. Server says: authGroup.Verify

I have no clue why this error shows up, nothing I did changed anything on the instance.

I then created a new instance with a new instance in a new folder, used a different username etc, only to get the same result.

Is there anything that can be done?

Any help is appreciated

This was solved by changing the workflow from using the username and password to using a token. After that, it worked fine