chore: 加入一键发版的 make 命令

This commit is contained in:
amtoaer
2024-02-25 01:11:13 +08:00
parent f6a5238b6e
commit 2f36220582
+10 -2
View File
@@ -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: install:
@echo "Installing dependencies..." @echo "Installing dependencies..."
@@ -28,4 +28,12 @@ sync-conf:
@echo "Syncing config..." @echo "Syncing config..."
@cp ${CONFIG_SRC} ./config/ @cp ${CONFIG_SRC} ./config/
@cp ${DB_SRC} ./data/ @cp ${DB_SRC} ./data/
@echo "Done." @echo "Done."
release:
@echo "Releasing..."
@git checkout main
@bump-my-version bump patch
@git push origin main
@git push origin --tags
@echo "Done."