-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 809 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: all clean default install lock update checks pc test docs run
default: checks
install:
pre-commit install
poetry install --sync
lock:
poetry lock --no-update
update:
poetry up --latest
checks: pc install lint test
pc:
pre-commit run -a
lint:
poetry run poe lint
test:
poetry run poe test
docs:
poetry run mkdocs serve
run:
poetry run uvicorn --reload deadnews_template_python:app
bumped:
git cliff --bumped-version
# make release-tag_name
# make release-$(git cliff --bumped-version)-alpha.0
release-%: checks
git cliff -o CHANGELOG.md --tag $*
pre-commit run --files CHANGELOG.md || pre-commit run --files CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore(release): prepare for $*"
git push
git tag -a $* -m "chore(release): $*"
git push origin $*
git tag --verify $*