Skip to content

Commit 82ce147

Browse files
committed
add makefile
1 parent d991a1f commit 82ce147

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
VERSION = $(shell git describe --tags --abbrev=0 | awk -F. '{OFS="."; $$NF+=1; print}')
2+
3+
.PHONY: build
4+
build:
5+
@rm -rf ./build
6+
@PYTHONWARNINGS=ignore uvx copier copy -q --trust --force --vcs-ref=HEAD . ./build
7+
8+
release:
9+
@git tag $(VERSION)
10+
@git push --follow-tags

copier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ _tasks:
4242
- "[ -d .git ] || poetry install -q"
4343
- "[ -d .git ] || git init -q && git add --all && git commit -qm 'initial commit'"
4444
- "[ -d .git ] || touch .envrc"
45-
- printf "To create your repo:\n\tgh repo create -y {{repo_username}}/{{repo_name}} {% if private %}--private{% else %}--public{% endif %}"
45+
- printf "To create your repo:\n gh repo create -y {{repo_username}}/{{repo_name}} {% if private %}--private{% else %}--public{% endif %}"

0 commit comments

Comments
 (0)