简体   繁体   English

链接 github repo 和 Pypi 上的包

[英]LInk github repo with package on Pypi

I uploaded a python package on Pypi , but I'd also like to upload it to Github , so it can be opensource and anyone can contribute.我在Pypi上上传了一个 python 包,但我也想把它上传到Github ,所以它可以是开源的,任何人都可以贡献。

Is is possible to link the github repo with the already uploaded package on Pypi, so whenever I push something to the master branch, it also updates on Pypi?是否可以将 github 存储库与 Pypi 上已上传的包链接,所以每当我将某些内容推送到主分支时,它也会在 Pypi 上更新?

In your Github repository there is a tab called Actions (next to Pull requests) where there are several actions like "Publish Python Package".在您的 Github 存储库中有一个名为 Actions 的选项卡(在拉取请求旁边),其中有几个操作,例如“发布 Python 包”。

Python 包操作

Selecting it will automatically add the relevant Code to your repository.选择它会自动将相关代码添加到您的存储库中。 You then only need to store your credentials, like username & password.然后,您只需要存储您的凭据,例如用户名和密码。
You can do so under Settings > Secrets > Actions您可以在“设置”>“秘密”>“操作”下执行此操作

添加存储库机密

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM