Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
changelog:
exclude:
labels: [release]
categories:
- title: Features
labels: [feat]
Expand Down
90 changes: 0 additions & 90 deletions .github/workflows/release-prepare.yml

This file was deleted.

19 changes: 18 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: lint test clean
.PHONY: lint test clean release

.deps: Easkfile
eask install-deps
Expand All @@ -17,3 +17,20 @@ test: .compile
clean:
eask clean all
@rm -f .deps .compile

release: lint test
@test -n "$(VERSION)" || { echo "Give the version: make release VERSION=x.y.z"; exit 1; }
@git diff --quiet HEAD || { echo "Commit your changes first."; exit 1; }
git switch -c release/v$(VERSION)
sed 's/^;; Version: .*/;; Version: $(VERSION)/' magit-standup.el > magit-standup.el.new
mv magit-standup.el.new magit-standup.el
sed '2s/"[0-9][0-9.]*"/"$(VERSION)"/' Easkfile > Easkfile.new
mv Easkfile.new Easkfile
@grep -qx ";; Version: $(VERSION)" magit-standup.el
@grep -qx ' "$(VERSION)"' Easkfile
git commit -am "Bump the version to $(VERSION)"
@echo
@echo "Next:"
@echo " git push -u origin release/v$(VERSION)"
@echo " gh pr create --fill --label release"
@echo "Merge it, and the workflow makes the tag and the release."
20 changes: 20 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@ git log --format='%aN <%aE>' -1
The variable =magit-standup-author= (singular) still works, but it is
obsolete since version 0.2.0. Use =magit-standup-authors= instead.

* Release

To make a release, run:

#+begin_src shell
make release VERSION=0.3.0
#+end_src

The target runs the linter and the tests. Then it creates the branch
=release/v0.3.0= and commits the new version. Push the branch and open
a pull request:

#+begin_src shell
git push -u origin release/v0.3.0
gh pr create --fill --label release
#+end_src

When you merge the pull request, a workflow creates the tag and
publishes the release with the generated notes.

* License

GPL-3.0-or-later
Loading