File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,19 @@ release-commit:
43
43
git config user.email $GITLAB_USER_EMAIL
44
44
git remote set-url --push origin "https://sysu-bot:[email protected] /sysu-gitlab/thesis-template/better-thesis.git"
45
45
- |
46
- VERSION =$(git cliff --bumped-version --unreleased)
47
- git cliff --bump --unreleased > release-note.md
46
+ BUMPED_VERSION =$(git cliff --bumped-version --unreleased)
47
+ git cliff --bump --unreleased -- --newest > release-note.md
48
48
- |
49
- sd 'version = ".*"' 'version = "$VERSION"' $CI_PROJECT_DIR/typst.toml
49
+ sd 'version = ".*"' 'version = "$BUMPED_VERSION"' $CI_PROJECT_DIR/typst.toml
50
+ sd 'version = "v(.*)"' "version = \"$1\"" typst.toml
51
+ git add $CI_PROJECT_DIR/typst.toml
52
+ - |
53
+ git cliff --unreleased --tag $BUMPED_VERSION --prepend CHANGELOG.md -- --newest
54
+ git add $CI_PROJECT_DIR/CHANGELOG.md
50
55
- |
51
- git add $CI_PROJECT_DIR/typst.toml && git commit -m "ci(release):$VERSION"
52
- git tag $VERSION -m --file=release-note.md
56
+ git status
57
+ git commit -m "chore(release): prepare for $BUMPED_VERSION"
58
+ git tag $BUMPED_VERSION -m --file=release-note.md
53
59
git push --tags
54
60
55
61
gitlab-release :
You can’t perform that action at this time.
0 commit comments