carpedm20 / emoji

emoji terminal output for Python
Other
1.87k stars 273 forks source link

Publish to pypi.org automatically on release #258

Closed cvzi closed 1 year ago

cvzi commented 1 year ago

@TahirJalilov This needs some configuration on Github and Pypi:

On Github:

Create a new Environment called pypi (maybe this needs to be done by @carpedm20 ?): Goto https://github.com/carpedm20/emoji/settings/environments Click New environment and name it pypi

On pypi.org:

Goto the "Manage"-page of the project, and select Publishing on the left side. Then fill out the form with:

carpedm20
emoji
pypipublish.yml
pypi

Documentation on this pypi.org-feature: https://docs.pypi.org/trusted-publishers/adding-a-publisher/

Ref #254

TahirJalilov commented 1 year ago

@carpedm20 Hello Taehoon, could you please make some settings to be possible to automatically publish new releases to pypi? Unfortunately, I don't have sufficient privileges ((

carpedm20 commented 1 year ago

@cvzi Thanks for sending me an email and sorry for the late reply. Just setup a new environment as you described in your email.

image

cvzi commented 1 year ago

@TahirJalilov

That error indicates that you either haven't registered the publisher on PyPI's side, or that there may be a small typo in how you've registered it.

Can you confirm that you performed the trusted publisher registration, and also take a screencap of the publisher as it appears on the "publishing" page on PyPI? That'll help us debug further 🙂

Originally posted by @woodruffw in https://github.com/pypa/gh-action-pypi-publish/issues/138#issuecomment-1589481083

Can you double check that these settings are correct on pypi.org:

On pypi.org:

Goto the "Manage"-page of the project, and select Publishing on the left side. Then fill out the form with:

carpedm20
emoji
pypipublish.yml
pypi
TahirJalilov commented 1 year ago

@cvzi unfortunately, I don't have sufficient privileges to manage the project on pypi.org. @carpedm20 could you check, please, what's wrong with "trusted publisher" on pypi?

carpedm20 commented 1 year ago

@TahirJalilov Sorry for the inconvenience. I just changed your role on pypi to the owner. Hope this resolves the problem.

TahirJalilov commented 1 year ago

@carpedm20 Thank you Taehoon!