mirror of
https://github.com/skoelle/kctl-tui.git
synced 2026-09-17 20:10:24 +00:00
1.3 KiB
1.3 KiB
description
| description |
|---|
| Create and push a release tag (e.g. /create-release 1.0.0) |
Create a release tag and push it to origin. The GitHub Action will automatically build for all platforms and create the GitHub Release.
Steps
-
Validate the version argument ($ARGUMENTS):
- Must be provided, otherwise show error and stop
- Must match semver format (e.g. 1.0.0, 0.9.1, 2.0.0-beta.1)
-
Check for uncommitted changes:
- Run
git status --porcelain - If any output, warn the user and stop (commit first)
- Run
-
Analyze changes since last release:
- Run
git log --oneline $(git describe --tags --abbrev=0 HEAD)..HEADto list all commits - Read the changed files to understand context
- Write a concise, well-structured release summary in English with:
- A one-line overview
- Bullet points for each notable change (features, fixes, breaking changes)
- Keep it developer-friendly, no fluff
- Run
-
Create release commit with the summary as message:
- Run
git commit --allow-empty -m "release v$ARGUMENTS\n\n<summary>" - The commit message IS the release notes — the GitHub Action picks it up automatically
- Run
-
Create annotated tag on that commit:
- Run
git tag -a v$ARGUMENTS -m "Release v$ARGUMENTS"
- Run
-
Push commit and tag:
- Run
git push origin main --tags(or current branch)
- Run
-
Confirm success with the version number