Skip to content

Commit

Permalink
chore: add Makefile to prepare future releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bdromard committed Oct 28, 2024
1 parent 53aefac commit 09da6ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CURRENT_VERSION := $(shell poetry version -s)
SEMVERS := major minor patch
LAST_TAG := $(shell git describe --tags --abbrev=0)

tag_version:
git commit -m "release: bump to ${CURRENT_VERSION}" pyproject.toml
git tag ${CURRENT_VERSION}

$(SEMVERS):
poetry version $@
$(MAKE) tag_version

release:
git push origin tag ${LAST_TAG}
gh release create --verify-tag ${LAST_TAG} --notes-from-tag
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "boagent"
version = "0.1.0"
version = "0.1.1"
description = "Local API to collect and compute data on used device and running applications to give insight on their environmental impacts."
authors = ["Boavizta <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 09da6ed

Please sign in to comment.