# Unable to publish Packages using Runners

**URL:** <https://forum.gitea.com/t/unable-to-publish-packages-using-runners/10962>\
**Category:** Install/Maintain/Configure\
**Created:** [March 16, 2025, 8:31am UTC](https://forum.gitea.com/t/unable-to-publish-packages-using-runners/10962 "2025-03-16T08:31:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WorldTeacher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/worldteacher/32/6120_2.png) [@WorldTeacher](https://forum.gitea.com/u/WorldTeacher)\
**Post date:** [March 16, 2025, 8:31am UTC](https://forum.gitea.com/t/unable-to-publish-packages-using-runners/10962/1 "2025-03-16T08:31:05Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![WorldTeacher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/worldteacher/32/6120_2.png) [@WorldTeacher](https://forum.gitea.com/u/WorldTeacher)\
**Post date:** [March 16, 2025, 11:16am UTC](https://forum.gitea.com/t/unable-to-publish-packages-using-runners/10962/2 "2025-03-16T11:16:36Z")

</div>

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