phillipdupuis / pydantic-to-typescript

CLI Tool for converting pydantic models into typescript definitions
MIT License
285 stars 48 forks source link

✨🚇 Add CI/CD pipeline #19

Closed s-weigand closed 2 years ago

s-weigand commented 2 years ago

Thanks for the awesome tool, this is precisely what I was looking for 🎉😄

I thought you might enjoy a CI/CD pipeline that automatically runs tests on PRs and deploys the package to PyPI when you push a tag (e.g. when creating a release on the github release page). I also found a bug on windows where only the first line of the banner was added to the file since windows shells don't like multiline strings.

For the CD pipeline to work you need to get a token from PyPI and set pypi_password as secret in your repository settings.

Here is an example what the CI run looks like

phillipdupuis commented 2 years ago

This is fantastic! Thanks so much for putting in the work to get this up and running. :)