feat: add release

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/462/head
Xinwei Xiong(cubxxw-openim) 1 year ago
parent edcb065636
commit 4d8fafe029

@ -158,6 +158,11 @@ verify-copyright:
add-copyright: add-copyright:
@$(MAKE) copyright.add @$(MAKE) copyright.add
## release: release the project
.PHONY: release
release: release.verify release.ensure-tag
@scripts/release.sh
## help: Show this help info. ## help: Show this help info.
.PHONY: help .PHONY: help
help: Makefile help: Makefile

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# http://stackoverflow.com/a/21142256/2055281 # http://stackoverflow.com/a/21142256/2055281
echo "mode: atomic" > coverage.txt echo "mode: atomic" > coverage.txt
@ -27,4 +26,3 @@ for d in $(find ./* -maxdepth 10 -type d); do
fi fi
fi fi
done done

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright © 2023 OpenIM. All rights reserved. # Copyright © 2023 OpenIM. All rights reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

@ -96,7 +96,6 @@ openim::version::get_version_vars() {
: :
fi fi
# Try to match the "git describe" output to a regex to try to extract # Try to match the "git describe" output to a regex to try to extract
# the "major" and "minor" versions and whether this is the exact tagged # the "major" and "minor" versions and whether this is the exact tagged
# version or whether the tree is between two tagged versions. # version or whether the tree is between two tagged versions.

@ -17,7 +17,7 @@
# Versions are used after merging # Versions are used after merging
# #
## release: release the project ## release.run: release the project
.PHONY: release.run .PHONY: release.run
release.run: release.verify release.ensure-tag release.run: release.verify release.ensure-tag
@scripts/release.sh @scripts/release.sh
@ -39,4 +39,4 @@ release.ensure-tag: tools.verify.gsemver
## release.help: Display help information about the release package ## release.help: Display help information about the release package
.PHONY: release.help .PHONY: release.help
release.help: scripts/make-rules/release.mk release.help: scripts/make-rules/release.mk
$(call smallhelp) $(call smallhelp)

Loading…
Cancel
Save