6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 21:07:50 +00:00

ci: simplify release process

Previously, tags had to be created locally before they were pushed upstream.
Now they are automatically created in CI when __version__ is bumped.
This commit is contained in:
Régis Behmo 2022-11-29 16:46:06 +01:00
parent 21a7b211d2
commit 08a14c80db
2 changed files with 2 additions and 14 deletions

View File

@ -90,19 +90,6 @@ changelog-entry: ## Create a new changelog entry
changelog: ## Collect changelog entries in the CHANGELOG.md file
scriv collect
release: test release-unsafe ## Create a release tag and push it to origin
release-unsafe:
$(MAKE) release-tag release-push TAG=v$(shell make version)
release-tag:
@echo "=== Creating tag $(TAG)"
git tag -d $(TAG) || true
git tag $(TAG)
release-push:
@echo "=== Pushing tag $(TAG) to origin"
git push origin
git push origin :$(TAG) || true
git push origin $(TAG)
release-description: ## Write the current release description to a file
@sed "s/TUTOR_VERSION/v$(shell make version)/g" docs/_release_description.md
@git log -1 --pretty=format:%b

View File

@ -71,7 +71,8 @@ Releasing a new version
- Bump the ``__version__`` value in ``tutor/__about__.py``. (see :ref:`versioning` below)
- Collect changelog entries with ``make changelog``.
- Create a commit with the version changelog.
- Run ``make release``: this will create a tag and push to the default repo/branch for the current branch.
- Run tests with ``make test``.
- Push your changes to the upstream repository.
.. _versioning: