Skip to content

Commit

Permalink
chore(merging): 'ci-refactor-build-flow' into 'main'
Browse files Browse the repository at this point in the history
chore(release): prepare for v0.1.1-alpha.3

See merge request sysu-gitlab/thesis-template/better-thesis!10
  • Loading branch information
huangjj27 committed May 17, 2024
2 parents 431002f + 089f356 commit 2787e23
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .gitlab/merge_request_templates/release.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## 发布版本
这是一个发版新版本的 Merge Request,请确认已经完成以下操作:
- [ ] 该 PR 只有一个提交,并且发起 Merge Request 时已勾选 squash
- [ ] 通过 `git cliff --bumped-version` 命令生成新版本号 `$BUMPED_VERSION`:
```sh
BUMPED_VERSION=$(git cliff --bumped-version)
```
- [ ] 最后一个提交已更新 `typst.toml` 的版本为 `$BUMPED_VERSION`, 并添加到最后的提交中:
- [ ] 已更新 `typst.toml` 的版本为 `$BUMPED_VERSION`, 并添加到最后的提交中:
```sh
# Powershell
# sd 'version = ".*"' "version = `"$BUMPED_VERSION`"" typst.toml
Expand All @@ -13,16 +14,16 @@
sd 'version = "v(.*)"' "version = \"$1\"" typst.toml
git add typst.toml
```
- [ ] 最后一个提交已更新 `CHANGELOG.md`:
- [ ] 已更新 `CHANGELOG.md`:
```sh
git cliff --unreleased --tag $BUMPED_VERSION --prepend CHANGELOG.md -- --newest
git add CHANGELOG.md
```
- [ ] 最后一个提交的提交信息符合 `chore(release): prepare for $BUMPED_VERSION`
- [ ] 提交信息符合 `chore(release): prepare for $BUMPED_VERSION`
```sh
git commit -m "chore(release): prepare for $BUMPED_VERSION"
```
- [ ] 最后一个提交带有标签,标签头 `$BUMPED_VERSION`,并且标签描述通过 `git cliff` 生成:
- [ ] 提交带有标签,标签头 `$BUMPED_VERSION`,并且标签描述通过 `git cliff` 生成:
```sh
git cliff --bump --unreleased -- --newest > release_$BUMPED_VERSION.md
git tag "$BUMPED_VERSION" --file release_$BUMPED_VERSION.md
Expand Down

0 comments on commit 2787e23

Please sign in to comment.