Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Oct 11, 2024
1 parent 23a97be commit b961937
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ clean: ## Clean unused files.
.PHONY: release
release: ## Create a new tag for release.
@echo "WARNING: This operation will create s version tag and push to github"
@read -p "Version? (provide the next x.y.z semver) : " TAG
@echo "$${TAG}" > tosfs/VERSION
@$(ENV_PREFIX)gitchangelog > HISTORY.md
@git add tosfs/VERSION HISTORY.md
@git commit -m "release: version $${TAG} 🚀"
@echo "creating git tag : $${TAG}"
@git tag $${TAG}
@git push -u origin HEAD --tags
@echo "Github Actions will detect the new tag and release the new version."
@read -p "Version? (provide the next x.y.z semver) : " TAG; \
echo "$${TAG}" > tosfs/VERSION; \
git log --pretty=format:"%h - %s (%an, %ad)" --date=short > HISTORY.md; \
git add tosfs/VERSION HISTORY.md; \
git commit -m "release: version $${TAG} 🚀"; \
echo "creating git tag : $${TAG}"; \
git tag $${TAG}; \
git push -u origin HEAD --tags; \
echo "Github Actions will detect the new tag and release the new version."

.PHONY: docs
docs: ## Build the documentation.
Expand Down

0 comments on commit b961937

Please sign in to comment.