Skip to content

Commit 37d403c

Browse files
authored
Merge pull request #57 from Boavizta/dev
Add Makefile with scripts for future releases
2 parents 7d8646e + 09da6ed commit 37d403c

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CURRENT_VERSION := $(shell poetry version -s)
2+
SEMVERS := major minor patch
3+
LAST_TAG := $(shell git describe --tags --abbrev=0)
4+
5+
tag_version:
6+
git commit -m "release: bump to ${CURRENT_VERSION}" pyproject.toml
7+
git tag ${CURRENT_VERSION}
8+
9+
$(SEMVERS):
10+
poetry version $@
11+
$(MAKE) tag_version
12+
13+
release:
14+
git push origin tag ${LAST_TAG}
15+
gh release create --verify-tag ${LAST_TAG} --notes-from-tag

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "boagent"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Local API to collect and compute data on used device and running applications to give insight on their environmental impacts."
55
authors = ["Boavizta <open-source@boavizta.org>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)