build: add docs script to release

This commit is contained in:
Daylin Morgan 2023-01-25 12:26:50 -06:00
parent 38a741b20e
commit a1285a03ef

View file

@ -25,8 +25,8 @@ assets: ## generate assets
define release_sh
./generate.py $(subst v,,$(VERSION)) > task.mk
sed -i 's/task.mk\/.*\/task.mk/task.mk\/$(VERSION)\/task.mk/g' README.md docs/index.md
sed -i 's/TASKMK_VERSION=.*/TASKMK_VERSION=$(VERSION)/' docs/init
git add task.mk README.md docs/index.md
sed -i 's/TASKMK_VERSION=.*/TASKMK_VERSION="$(VERSION)"/' docs/init
git add task.mk README.md docs/{index.md,init}
git commit -m "release: $(VERSION)" --no-verify
git tag $(VERSION)
endef