Skip to content

Commit

Permalink
Updated git tag release helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Apr 9, 2024
1 parent a6d3281 commit 6b29599
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,20 @@ benchmark_proof_sizes: ## runs the benchmarks test the proof sizes for differen
### Release Helpers ###
###########################

# List tags: git tag
# Delete tag locally: git tag -d v1.2.3
# Delete tag remotely: git push --delete origin v1.2.3

.PHONY: tag_minor_release
tag_minor_release: ## Tag a new minor release (e.g. v1.0.0 -> v1.1.0)
@$(eval LATEST_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`))
@$(eval NEW_TAG=$(shell echo $(LATEST_TAG) | awk -F. '{$$2 += 1; $$3 = 2; print $$1 "." $$2 "." $$3}'))
@git tag $(NEW_TAG)
@echo "New minor release version: $(NEW_TAG)\nRun `git push origin $(NEW_TAG)` and draft a new release at https://github.com/pokt-network/smt/releases/new"
@echo "New minor release version: $(NEW_TAG)\nRun \"git push origin $(NEW_TAG)\" and draft a new release at https://github.com/pokt-network/smt/releases/new"

.PHONY: tag_bug_fix
tag_bug_fix: ## Tag a new bug fix release (e.g. v1.0.1 -> v1.0.2)
@$(eval LATEST_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`))
@$(eval NEW_TAG=$(shell echo $(LATEST_TAG) | awk -F. '{$$3 += 1; print $$1 "." $$2 "." $$3}'))
@git tag $(NEW_TAG)
@echo "New bug fix version: $(NEW_TAG)\nRun `git push origin $(NEW_TAG)` and draft a new release at https://github.com/pokt-network/smt/releases/new"
@echo "New bug fix version: $(NEW_TAG)\nRun \"git push origin $(NEW_TAG)\" and draft a new release at https://github.com/pokt-network/smt/releases/new"

0 comments on commit 6b29599

Please sign in to comment.