GitHub_Action_Python_Package_Example
1.0.2
นี่เป็นตัวอย่างการกระทำของ GitHub สำหรับแพ็คเกจการเผยแพร่อัตโนมัติ PYPI และการทดสอบอัตโนมัติ
Setting gitHub ➡ Secrets แก้ไข GitHub_Action_Python_Example/__version__.py หมายเลขเวอร์ชัน (เช่น 1.0.2)
คลิกและบันทึก Release แบบร่าง
.github/workflows/publish.yml จะช่วยคุณเผยแพร่แพ็คเกจไปยัง PYPI pip install GitHub-Action-Python-Example
from GitHub_Action_Python_Example . client import HelloWorld
message = HelloWorld ( message = "Change the World~" )
print ( message . get_message ())MIT © Nijia Lin