Simplify the release process

Instead of pushing to multiple remotes, push to just one. It will then
sync changes to the other.
This commit is contained in:
Régis Behmo 2021-03-17 16:45:01 +01:00
parent 0c88d73914
commit b557cf9b43
2 changed files with 4 additions and 14 deletions

View File

@ -58,26 +58,18 @@ bundle: ## Bundle the tutor package in a single "dist/tutor" executable
dist/tutor:
$(MAKE) bundle
nightly: ## Create a "nightly" release
$(MAKE) tag TAG=nightly
release: test ## Create a release tag and push it to origin
$(MAKE) retag release-origin release-overhangio TAG=v$(shell make version)
$(MAKE) release-tag release-push TAG=v$(shell make version)
retag:
release-tag:
@echo "=== Creating tag $(TAG)"
git tag -d $(TAG) || true
git tag $(TAG)
release-origin:
release-push:
@echo "=== Pushing tag $(TAG) to origin"
git push origin
git push origin :$(TAG) || true
git push origin $(TAG)
release-overhangio:
@echo "=== Pushing tag $(TAG) to overhangio"
git push overhangio
git push overhangio :$(TAG) || true
git push overhangio $(TAG)
###### Continuous integration tasks

View File

@ -65,9 +65,7 @@ Releasing a new version
- Bump the ``__version__`` value in ``tutor/__about__.py``.
- Replace "Unreleased" by the version name and date in CHANGELOG.md.
- Create a commit with the version changelog.
- ``make release`` (this assumes that there are two remotes named "origin" and "overhangio")
After a regular push to ``master``, run ``make nightly`` to update the "nightly" tag.
- Run ``make release``: this will push to the default repo/branch for the current branch.
.. _contributing: