Skip to content

Commit 937051d

Browse files
Tag first then update develop branch
1 parent c2b57e4 commit 937051d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ release: ## Release new version
3838
sed -i '' "s/, 'dev'//" $(VERSION_FILE)
3939
git commit -a -m "release $(VERSION)"
4040

41+
# Tag it
42+
git tag v$(VERSION)
43+
4144
# Bump version for development
4245
$(eval NEXT_VERSION := $(shell echo $(VERSION) | awk -F. '{print $$1"."($$2+1)".0"}'))
4346
$(eval VERSION_CODE := $(shell echo $(NEXT_VERSION) | sed 's/\./, /g'))
4447
sed -i '' -E "s/[0-9]+, [0-9]+, [0-9]+/$(VERSION_CODE), 'dev'/" $(VERSION_FILE)
4548
git commit -a -m "start $(NEXT_VERSION)"
4649
git push origin develop
4750

48-
# Tag it, push the tag, release the package to pypi
49-
git tag v$(VERSION)
51+
# Push the tag, release the package to pypi
5052
git push --tags
5153

5254
doc:

0 commit comments

Comments
 (0)