github-release
Create a GitHub release with auto-generated release notes from commits since the last tag. Uses conventional commits to categorize changes into Features, Bug Fixes, and maintenance sections.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
GitHub Release
Create GitHub release with formatted notes from commits since last tag.
Prereqs: gh authenticated, existing tags in repo
Workflow
-
Get commits since latest tag (run as separate commands):
# First: get latest tag git tag --sort=-v:refname | head -1# Then: get commits since that tag (replace <TAG> with result above) git log <TAG>..HEAD --pretty=format:"%h %s%n%b---" --no-merges -
Bump version if needed:
- Check if version in
decentpaste-app/src-tauri/tauri.conf.jsonmatches latest tag - If yes, run
/bump-versionskill first - If already bumped, continue
- Check if version in
-
Categorize by conventional commit prefix:
Prefix Section feat:Features & Improvements fix:Bug Fixes chore:,docs:,refactor:,perf:,style:,test:Under the Hood -
Generate notes (omit empty sections):
## What's New in vX.X.X [1-2 sentence summary] ### Features & Improvements - **Feature** - Description ### Bug Fixes - **Fix** - Description ### Under the Hood - **Change** - Description ### Downloads | Platform | Download | |----------|----------| | Windows | `DecentPaste_X.X.X_x64-setup.exe` | | macOS (Intel) | `DecentPaste_X.X.X_x64.dmg` | | macOS (Apple Silicon) | `DecentPaste_X.X.X_aarch64.dmg` | | Linux (Debian/Ubuntu) | `DecentPaste_X.X.X_amd64.deb` | | Linux (AppImage) | `DecentPaste_X.X.X_amd64.AppImage` | | Android | `DecentPaste_X.X.X.apk` | --- **Full Changelog**: https://github.com/decentpaste/decentpaste/compare/<prev-tag>...v<version> -
Confirm with user: show version, tag, commit count, notes preview
-
Commit and push version bump (CRITICAL - must happen before creating release!):
git add -A && git commit -m "chore: bump version to X.X.X" git push⚠️ CI/CD builds from the pushed code. If you create the release before pushing, CI will build the old version!
-
Create release:
gh release create vX.X.X --title "DecentPaste vX.X.X" --notes "$(cat <<'EOF' <notes> EOF )" -
Done: Show release URL, CI will automatically build and upload artifacts
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-04
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!