Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Oct 5, 2024
1 parent d991a1f commit 82ce147
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}"

0 comments on commit 82ce147

Please sign in to comment.