Replies: 3 comments 1 reply
-
There is a PyPi action to publish releases, which seems to be able to trigger-on-tag out of the box. Anyway, here are some usefull links regarding tag filtering:
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
- 'v[0-9]+.[0-9]+.[0-9]+' # strictly vX.Y.Z |
Beta Was this translation helpful? Give feedback.
-
For changelogs, I think it is also worth mentioning towncrier. It has a different approach than the previous idea of using git commits to generate changelogs. Instead, markdown "fragments" are placed inside a specific folder and should be "consumed" to generate the changelog on release. The advantage is that this manual entry may be a little cleaner in general. For example, in the case of one PR that does two things, the commit-based changelog would produce one entry for the two, while here we would write two fragments and generate two entries afterward. In the end, it is an experience close to just writing directly to a changelog, but it provides some conveniences, like templates and the idea of fragments, which avoids merge conflicts. The downside is that we'll have to write the fragments rs |
Beta Was this translation helpful? Give feedback.
-
Closed by: #1072 |
Beta Was this translation helpful? Give feedback.
-
I'm creating this discussion to help organize and plan how we can implement a better release automation and changelog generation.
Release
This would make it very straightforward to do new releases.
Changelog and Conventional Commits
In addition, we could also improve the changelog generation by using some changelog generator tool.
I've taken a look in git-cliff and it looks good. It provides python bindings, GH Actions integrations and customizable templates. There is also github-changelog-generator.
In any case, all we'll have to do besides setting it up is adopting some commit name convention (based on conventional commits). This naming will only happen when merging PR to master, where we usually do a squash-merge.
Status
release: patch | minor
) + bump version refsBeta Was this translation helpful? Give feedback.
All reactions