HENNGE / aiodynamo

Asynchronous, fast, pythonic DynamoDB Client
https://aiodynamo.readthedocs.io/
Other
69 stars 20 forks source link

Add GHA for PyPi release #163

Closed FurqanHabibi closed 9 months ago

FurqanHabibi commented 9 months ago

As with AAPNS, this will automatically publish a new pypi release when a Github release is created.

FurqanHabibi commented 9 months ago

@ojii Let's try this? Perhaps we can create a new release while at it?

ojii commented 9 months ago

A couple more changes are coming soon so I want to wait for those

ojii commented 9 months ago

@FurqanHabibi just to check, after merging, to make a release the procedure is:

  1. Change version in pyproject.toml
  2. Update docs/changelog.rst
  3. make a commit and push
  4. create a release on github

correct?

FurqanHabibi commented 9 months ago

100% correct 👍

Make sure release tag == pyproject.toml version

dimaqq commented 9 months ago
  1. Change version in pyproject.toml
  2. Update docs/changelog.rst
  3. make a commit and push
  4. create a release on github

I recommend release-please github action to automate all these steps. It's pretty easy to set up and works pretty well. (maybe expect one WAT moment, but still rather easy to figure out)

It does require following https://www.conventionalcommits.org/en/v1.0.0/ though.

dimaqq commented 9 months ago

Edit: CalVer support is still on TODO list: https://github.com/googleapis/release-please/issues/1848

ojii commented 9 months ago

Edit: CalVer support is still on TODO list: googleapis/release-please#1848

that's a no from me then.

dimaqq commented 9 months ago

https://github.com/python-semantic-release/python-semantic-release then?

I haven't tried it, but I think version_pattern can be crafted smth like YY.patch?

ojii commented 9 months ago

thanks, i'll do a release and try this thing then

ojii commented 9 months ago

🎉 https://pypi.org/project/aiodynamo/23.10/