Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to pypi.org automatically on release #258

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

cvzi
Copy link
Contributor

@cvzi cvzi commented May 13, 2023

@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
Copy link
Collaborator

@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 ((

This allows pip to generate a wheel-file when installing from source/tarballs.
Resolves carpedm20#264
@carpedm20
Copy link
Owner

@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

@TahirJalilov TahirJalilov merged commit f48f9ec into carpedm20:master Jul 5, 2023
7 checks passed
@cvzi
Copy link
Contributor Author

cvzi commented Jul 25, 2023

@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 pypa/gh-action-pypi-publish#138 (comment)

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
Copy link
Collaborator

@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
Copy link
Owner

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

@TahirJalilov
Copy link
Collaborator

@carpedm20 Thank you Taehoon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants