Skip to content

Commit

Permalink
chore(merging): 'ci-refactor-build-flow' into 'main'
Browse files Browse the repository at this point in the history
ci(gitlab-ci): 更新打版命令

See merge request sysu-gitlab/thesis-template/better-thesis!16
  • Loading branch information
huangjj27 committed May 19, 2024
2 parents bc18e32 + 0e9e5d9 commit b7265f7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .gitlab/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,19 @@ release-commit:
git config user.email $GITLAB_USER_EMAIL
git remote set-url --push origin "https://sysu-bot:[email protected]/sysu-gitlab/thesis-template/better-thesis.git"
- |
VERSION=$(git cliff --bumped-version --unreleased)
git cliff --bump --unreleased > release-note.md
BUMPED_VERSION=$(git cliff --bumped-version --unreleased)
git cliff --bump --unreleased -- --newest > release-note.md
- |
sd 'version = ".*"' 'version = "$VERSION"' $CI_PROJECT_DIR/typst.toml
sd 'version = ".*"' 'version = "$BUMPED_VERSION"' $CI_PROJECT_DIR/typst.toml
sd 'version = "v(.*)"' "version = \"$1\"" typst.toml
git add $CI_PROJECT_DIR/typst.toml
- |
git cliff --unreleased --tag $BUMPED_VERSION --prepend CHANGELOG.md -- --newest
git add $CI_PROJECT_DIR/CHANGELOG.md
- |
git add $CI_PROJECT_DIR/typst.toml && git commit -m "ci(release):$VERSION"
git tag $VERSION -m --file=release-note.md
git status
git commit -m "chore(release): prepare for $BUMPED_VERSION"
git tag $BUMPED_VERSION -m --file=release-note.md
git push --tags
gitlab-release:
Expand Down

0 comments on commit b7265f7

Please sign in to comment.