8000 .github: Add Automated release process by corona10 · Pull Request #251 · python/pyperformance · GitHub
[go: up one dir, main page]

Skip to content

.github: Add Automated release process #251

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

Merged
merged 5 commits into from
Dec 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rebase
  • Loading branch information
corona10 committed Dec 5, 2022
commit becbad46965dba59c971f2ea752a968a32a4af94
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
#
# Release a new version:
#
# - git tag VERSION
# - git push --tags
# - Remove untracked files/dirs: git clean -fdx
# - python -m build
# - twine upload dist/*
# - go to the GitHub release tab: https://github.com/python/pyperformance/releases
# - click "Draft a new release" and fill the contents
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean "Create a new release"?

The URL is https://github.com/python/pyperformance/releases/new, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding "fill the contents", presumably you mean the following:

  1. select from "Choose a tag" dropdown (or "create a new tag" via that dropdown)
  2. select "Target: main" from the other dropdown (the default?)
  3. enter the version number for "Release title", matching the name of the tag from (1)
  4. enter something in "Describe this release"

Is the above correct?

Regarding (1), what's the best way to determine what the next version should be? It might be obvious to many, but it would help some if this were spelled out. Also, the tag should not exist yet right?

Regarding (4), what should go here? It seems like, at most, it would include either a basic "what's new" list or a link to a changelog. Leaving it blank would probably be fine too. Is there a way to have a template for this field (and maybe for (3) the "Release title" field?

Anyway, what you have is probably fine, but it may be worth putting a bit more info here in this comment in pyproject.toml.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, am I correct in thinking that the "Prepare a release" steps remain unchanged?

If we can have a "publish" template, it would be nice if also reminded the person to make sure they completed those steps already.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For (1), you can either pick an existing tag, or create a new one - the drop down box has "Find or create a new tag". Because we've not created one yet with these steps, we want to create a new one?

For (2) and (3), sounds good.

For (4), one option is to click the "Generate release notes" button and it'll fill something in based on the PRs that were merged.

# - finally click the "Publish release" button! Done!
# - monitor the publish status: https://github.com/python/pyperformance/actions/workflows/publish.yml
#
# After the release:
#
Expand Down
0