Skip to content

Commit

Permalink
build: Create a simple release routine
Browse files Browse the repository at this point in the history
  • Loading branch information
Heikki Ketoharju committed Mar 2, 2024
1 parent b30c0fe commit c612405
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ bundle:
shiv -c photos -o ./bin/photos .
shiv -c photo-viewer -o ./bin/photo-viewer .

#: Prepare a release. Pass a release with var VERSION=1.2.3
release:
ifndef VERSION
$(error Failed making a release. Define VERSION as an argument)
endif

@echo Preparing version $(VERSION)
sed -i -E "s/--version .*/--version $(VERSION)/g" .fpm
sed -i -E "s/version = .*/version = \"$(VERSION)\"/g" pyproject.toml
git-cliff --tag $(VERSION) > CHANGELOG.md

#: Create a deb package
deb:
@mkdir -p bin
Expand Down

0 comments on commit c612405

Please sign in to comment.