Skip to content

Commit

Permalink
Add build to towncrier commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Apr 12, 2023
1 parent acd5b24 commit 63e1e5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ docs: build-docs validate-docs

validate-docs: build-docs
python newsfragments/validate_files.py
towncrier --draft
towncrier build --draft

linux-docs: build-docs
readlink -f docs/_build/html/index.html
Expand All @@ -57,7 +57,7 @@ notes:
# Let UPCOMING_VERSION be the version that is used for the current bump
$(eval UPCOMING_VERSION=$(shell bumpversion $(bump) --dry-run --list | grep new_version= | sed 's/new_version=//g'))
# Now generate the release notes to have them included in the release commit
towncrier --yes --version $(UPCOMING_VERSION)
towncrier build --yes --version $(UPCOMING_VERSION)
# Before we bump the version, make sure that the towncrier-generated docs will build
make build-docs
git commit -m "Compile release notes"
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ Preview The Release Notes

.. code:: sh
$ towncrier --draft
$ towncrier build --draft
Compile The Release Notes
Expand Down
1 change: 1 addition & 0 deletions newsfragments/2915.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added ``build`` to towncrier commands in Makefile

0 comments on commit 63e1e5e

Please sign in to comment.