Skip to content

Commit

Permalink
Force push
Browse files Browse the repository at this point in the history
  • Loading branch information
blythed committed Aug 12, 2024
1 parent 30b8734 commit 5e53dd1
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,13 @@ CURRENT_BRANCH=$(shell git branch --show-current)
new_release: ## Release a new version of SuperDuperDB
@ if [[ -z "${RELEASE_VERSION}" ]]; then echo "VERSION is not set"; exit 1; fi
@ if [[ "$(RELEASE_VERSION)" == "$(CURRENT_RELEASE)" ]]; then echo "No new release version. Please update VERSION file."; exit 1; fi
# Update version in source code
@echo "** Change superduperdb/__init__.py to version $(RELEASE_VERSION)"
@sed -ie "s/^__version__ = .*/__version__ = '$(RELEASE_VERSION:v%=%)'/" superduperdb/__init__.py
@git add superduperdb/__init__.py
# Commit and tag release
@echo "** Commit Bump Version and Tags"
@git add VERSION CHANGELOG.md
@git commit -m "Bump Version $(RELEASE_VERSION)"
@git tag $(RELEASE_VERSION)
# Push branch and set upstream
git push --set-upstream origin $(CURRENT_BRANCH)
# Push the specific tag
git push origin $(RELEASE_VERSION)
sed -ie "s/^__version__ = .*/__version__ = '$(RELEASE_VERSION:v%=%)'/" superduperdb/__init__.py
git add superduperdb/__init__.py
git add VERSION CHANGELOG.md
-git commit -m "Bump Version $(RELEASE_VERSION)"
git tag $(RELEASE_VERSION)
git push --set-upstream origin $(CURRENT_BRANCH) -f
git push origin $(RELEASE_VERSION) -f


install_devkit: ## Add essential development tools
Expand Down

0 comments on commit 5e53dd1

Please sign in to comment.