Add automatic patch-bump releases on push to master#8
Merged
xormania merged 2 commits intoMay 2, 2026
Conversation
Agent-Logs-Url: https://github.com/uscient/mboxer/sessions/655bed6e-7dfd-45eb-a90d-6b4238adb33e Co-authored-by: xormania <127287135+xormania@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions-based automatic releases
Add automatic patch-bump releases on push to master
May 2, 2026
xormania
marked this pull request as ready for review
May 2, 2026 21:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow that automatically tags and releases on every push to
masterusing a simple patch-bump strategy. No prior release automation existed.Workflow changes (
.github/workflows/release.yml)bump-and-releasejob — triggers onpush: branches: master:fetch-depth: 0)v*.*.*tag (strict^v[0-9]+\.[0-9]+\.[0-9]+$filter — skips pre-release/malformed tags)v0.1.0if no prior tag exists; otherwise increments patchsoftprops/action-gh-release@v2build-and-publishjob — unchanged; still triggers on manualv*.*.*tag pushes for PyPIlatest_tag=$(git tag --list 'v*' --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)Docs (
README.md)Added a Releases section covering the patch-bump behavior, the
v0.1.0bootstrap default, and two key caveats:GITHUB_TOKEN, so they do not re-trigger the PyPI publish job (by GitHub Actions design)Original prompt
Add GitHub Actions-based automatic releases for the repository
uscient/mboxerusing the simplest strategy: on every push to themasterbranch, compute the next patch version tag, create and push that Git tag, and publish a GitHub Release with autogenerated release notes.Requirements:
uscient/mboxermaster.v*tags exist, start fromv0.1.0.v*..github/workflows/release.yml.Implementation notes:
master, which is effectively merged PRs if branch protection requires PR-only changes.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Can I have auto releases with version tagging on a successful merge with
masterbranch?Assistant: Yes — you can automate this with GitHub Actions so that when changes land on
master, GitHub creates a tag and a release.What GitHub gives you out of the box:
What GitHub does not do automatically by default:
masterreceived a merge.master.Typical setup
pushtomasterv1.2.3Example workflow
Notes
python-semantic-releaseis a strong fit if you want versioning tied to conventional commits.Recommended approach for
uscient/mboxer.github/release.yml, as documented here: Automatically generated release notesImportant caveat
pushtomasterfires for any push, not only merged PRs. If you want “successful merge to master” specifically, that’s usually fine if branch protection requires PR merges only.If you want, I can...
This pull request was created from Copilot chat.