简体   繁体   中英

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.

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?

In your Github repository there is a tab called Actions (next to Pull requests) where there are several actions like "Publish Python Package".

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

添加存储库机密

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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