From 82ce147233e2b321c0fde3ee0c1b4c3c4c139523 Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 5 Oct 2024 13:17:27 -0700 Subject: [PATCH] add makefile --- Makefile | 10 ++++++++++ copier.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4431491 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +VERSION = $(shell git describe --tags --abbrev=0 | awk -F. '{OFS="."; $$NF+=1; print}') + +.PHONY: build +build: + @rm -rf ./build + @PYTHONWARNINGS=ignore uvx copier copy -q --trust --force --vcs-ref=HEAD . ./build + +release: + @git tag $(VERSION) + @git push --follow-tags diff --git a/copier.yaml b/copier.yaml index 332d9f0..55278ec 100644 --- a/copier.yaml +++ b/copier.yaml @@ -42,4 +42,4 @@ _tasks: - "[ -d .git ] || poetry install -q" - "[ -d .git ] || git init -q && git add --all && git commit -qm 'initial commit'" - "[ -d .git ] || touch .envrc" - - printf "To create your repo:\n\tgh repo create -y {{repo_username}}/{{repo_name}} {% if private %}--private{% else %}--public{% endif %}" + - printf "To create your repo:\n gh repo create -y {{repo_username}}/{{repo_name}} {% if private %}--private{% else %}--public{% endif %}"