From 2f36220582df9c999983c6a79d2963a79a6ca984 Mon Sep 17 00:00:00 2001 From: amtoaer Date: Sun, 25 Feb 2024 01:11:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8A=A0=E5=85=A5=E4=B8=80=E9=94=AE?= =?UTF-8?q?=E5=8F=91=E7=89=88=E7=9A=84=20make=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e116cf1..4cc9a57 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: install fmt start-daemon start-once db-init db-migrate db-upgrade sync-conf +.PHONY: install fmt start-daemon start-once db-init db-migrate db-upgrade sync-conf release install: @echo "Installing dependencies..." @@ -28,4 +28,12 @@ sync-conf: @echo "Syncing config..." @cp ${CONFIG_SRC} ./config/ @cp ${DB_SRC} ./data/ - @echo "Done." \ No newline at end of file + @echo "Done." + +release: + @echo "Releasing..." + @git checkout main + @bump-my-version bump patch + @git push origin main + @git push origin --tags + @echo "Done."