diff --git a/Makefile b/Makefile index c4129a0..ec5e1e5 100644 --- a/Makefile +++ b/Makefile @@ -177,30 +177,15 @@ install-icons: ## Install icons to XDG data directory echo "Icons installed to $$ICON_DIR" # Release Management -bump-version: - @if [ -z "$(VERSION)" ]; then \ - echo "Error: VERSION is required. Usage: make release VERSION=0.0.2"; \ - exit 1; \ - fi - @echo "Bumping WayCast version to v$(VERSION)..." - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' Cargo.toml - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-core/Cargo.toml - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-gtk/Cargo.toml - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-plugins/Cargo.toml - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-config/Cargo.toml - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-macros/Cargo.toml - @sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' flake.nix - @cargo check --workspace --quiet - -tag-version: +release: @if [ -z "$(VERSION)" ]; then \ echo "Error: VERSION is required. Usage: make release VERSION=0.0.2"; \ exit 1; \ fi @git add -A - @git commit -m "Bump version to $(VERSION)" + @git commit -m "chore(release): v$(VERSION)" @git tag v$(VERSION) - @git push origin main + @git push origin master @git push origin v$(VERSION) @echo "✅ Release v$(VERSION) created!" @echo "🔗 Go to your Gitea instance to add release notes" \ No newline at end of file