Making a GitHub Action to automatically release your Python package to PyPI

Опубликовано: 29 Сентябрь 2024
на канале: Pybites
2,650
51

In today's video we look at a GitHub Action's workflow to automate uploading a package to PyPI based on a git tag being pushed to the repo.

(Don't forget to subscribe: http://www.youtube.com/c/pybites?sub_...)

Instructions used:
Publishing package distribution releases using GitHub Actions CI/CD workflows
https://packaging.python.org/guides/p...

Repo I implemented it on:
https://github.com/PyBites-Open-Sourc...

Resulting GitHub Action yaml file:
https://github.com/PyBites-Open-Sourc...

GitHub workflow run of the v0.4 tag being uploaded to PyPI:
https://github.com/PyBites-Open-Sourc...

This video is closely related to previous videos we shared:
- Automatically create beautiful code snippet images using Carbon and Selenium:    • Automatically create beautiful code s...  
- Setting up GitHub Actions on a repo:    • Setting up GitHub Actions on a repo  
- How to upload your Python package to PyPI using Flit:    • How to upload your Python package to ...  

----------------------------
There's plenty more to discover with PyBites:

Check out our Python tips book: https://pybit.es/tips

You can also subscribe to receive weekly Python / Career / Mindset tips straight to your inbox here: https://codechalleng.es/tips

To work with us 1:1 to develop that complex project you've always wanted to build, check out our coaching program: https://pybitesdevelopermindset.com/

If you'd prefer to listen to us on the go, we discuss the mindset crucial for a successful developer on our podcast: https://www.pybitespodcast.com/

Visit us at https://pybit.es to find out how we can help you on your Python journey.

Also we'd love to hear what you want more training and content on, just comment below or send us an email at info at pybit.es!