Skill站外收录 @skilllib/skill-2014279388160798722
release
自动化软件版本发布全流程,包括分析提交变更、按语义化规则升版、同步更新多处版本声明与元数据文件、生成结构化更新日志、提交带说明的代码变更,并完成带注释的标签创建与远程推送。
软件开发 AI 技能
Skills.MD
# Release Skill
This skill automates the entire release process for this project.
## Workflow
### Step 1: Analyze Changes Since Last Release
```bash
# Get the last release tag
git describe --tags --abbrev=0
# List all commits since the last tag
git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges
# Check for uncommitted changes
git status --short
```
Categorize all changes into:
- **Added**: New features
- **Changed**: Modifications to existing functionality
- **Fixed**: Bug fixes
- **Removed**: Removed features
- **Breaking**: Breaking changes (triggers major version bump)
### Step 2: Determine Version Bump
Follow [Semantic Versioning](https://semver.org/):
- **MAJOR** (X.0.0): Breaking changes or major rewrites
- **MINOR** (x.Y.0): New features, backward compatible
- **PATCH** (x.y.Z): Bug fixes, metadata updates, backward compatible
Current version can be found in:
- `Cargo.toml` (line ~3): `version = "X.Y.Z"`
- `meson.build` (line ~2): `version: 'X.Y.Z'`
### Step 3: Update Version Numbers
Update the version in these files:
1. **`Cargo.toml`**: `version = "X.Y.Z"`
2. **`meson.build`**: `version: 'X.Y.Z'`
### Step 4: Update CHANGELOG.md
Move content from `[Unreleased]` section to a new version section:
```markdown
## [X.Y.Z] - YYYY-MM-DD
### Added
- Feature description
### Changed
- Change description
### Fixed
- Fix description
```
Reset the `[Unreleased]` section to empty placeholders.
### Step 5: Update README.md
Update the version header section (around line 14):
```markdown
## 🎉 Version X.Y.Z - [Short Title]
**Karere X.Y.Z** brings [brief description of main changes].
### 🆕 What's New in X.Y.Z
- **Feature 1**: Description
- **Feature 2**: Description
```
### Step 6: Update metainfo.xml.in
Add a new `<release>` entry at the TOP of the `<releases>` section (after line 97):
```xml
<release version="X.Y.Z" date="YYYY-MM-DD">
<description>
<ul>
<li>Change description 1</li>
<li>Change description 2</li>
</ul>
</description>
</release>
```
**File location**: `data/io.github.tobagin.karere.metainfo.xml.in`
### Step 7: Update Cargo Lock and Sources
// turbo
```bash
cargo generate-lockfile
python3 tools/flatpak-cargo-generator.py Cargo.lock -o packaging/cargo-sources.json
```
### Step 8: Commit All Changes
Stage and commit with a detailed message:
```bash
git add .
git commit -m "Release vX.Y.Z
Changes in this release:
- [List main changes]
- [One per line]
Files updated:
- Cargo.toml, meson.build (version bump)
- CHANGELOG.md (release notes)
- README.md (version header)
- metainfo.xml.in (AppStream release)
- Cargo.lock, cargo-sources.json (dependencies)"
```
### Step 9: Create and Push Tag
```bash
# Create annotated tag
git tag -a vX.Y.Z -m "Release vX.Y.Z"
# Push commits and tags
git push origin HEAD --tags
```
## Important Notes
- Always use the format `vX.Y.Z` for tags (with the `v` prefix)
- Date format in CHANGELOG.md and metainfo.xml is `YYYY-MM-DD`
- The metainfo.xml release entries should be concise (no emojis in `<li>` items)
- Keep README.md "What's New" section brief and user-friendly
- CHANGELOG.md can be more detailed and technical
## File Locations Summary
| File | Version Location | Purpose |
|------|------------------|---------|
| `Cargo.toml` | Line ~3 | Rust package version |
| `meson.build` | Line ~2 | Build system version |
| `CHANGELOG.md` | New section after line 8 | Detailed release notes |
| `README.md` | Lines 14-22 | User-facing highlights |
| `data/io.github.tobagin.karere.metainfo.xml.in` | After line 97 | AppStream metadata |
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「release」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次