From fd14bafb7bea626532bf28d7cc70f2cb4acf65aa Mon Sep 17 00:00:00 2001 From: Marc Sibson <125162+sibson@users.noreply.github.com> Date: Wed, 17 May 2023 20:44:55 -0400 Subject: [PATCH] autostamp release date --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 5ad0e10..9bbd83e 100644 --- a/makefile +++ b/makefile @@ -16,10 +16,12 @@ release: release-check release-tag upload release-check: git pull - tox + make test release-tag: VERSION:=$(shell python setup.py --version) release-tag: + sed -i -e "s/unreleased/$(date '+%Y-%m-%d')/" CHANGES.txt + git ci -m"update release date for $(VERSION) in CHANGES.txt" CHANGES.txt git tag -a v$(VERSION) -m"release version $(VERSION)" git push --tags