Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH release tools #15

Open
jarrodmillman opened this issue Jul 2, 2023 · 0 comments
Open

GH release tools #15

jarrodmillman opened this issue Jul 2, 2023 · 0 comments

Comments

@jarrodmillman
Copy link
Member

jarrodmillman commented Jul 2, 2023

A release looks something like this:

$ changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} >> ${VERSION}.md
$ # Add ${VERSION}.md to CHANGELOG.md
$ # Update `version` in `pyproject.toml`
$ git add pyproject.toml CHANGELOG.md
$ git commit -m "Designate ${VERSION} release"
$ git tag -s v${VERSION} -m "signed ${VERSION} tag"
$ git push --tags origin main
$ # Make a github release from the tag

The first two manual steps are project specific and can be easily scripted there or handled manually.

However, it would be nice to help automate the last manual step so I could use changelist to create a GitHub release for the tagged release with ${VERSION}.md as the body or note and v${VERSION} as the title (with the option for it to be a pre-release).

https://pygithub.readthedocs.io/en/latest/github_objects/GitRelease.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant