7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-28 11:50:49 +00:00

Introduce the concept of "nightly" release

This commit is contained in:
Régis Behmo 2019-03-21 22:51:35 +01:00
parent 604093217f
commit 949761aa29
3 changed files with 12 additions and 7 deletions

View File

@ -52,7 +52,7 @@ deploy:
skip_cleanup: true
on:
tags: true
condition: $BUILD_DOCKER = true && $TRAVIS_TAG != "latest"
condition: $BUILD_DOCKER = true && $TRAVIS_TAG != "latest" && $TRAVIS_TAG != "nightly"
# Push to pypi
- provider: script
@ -60,4 +60,4 @@ deploy:
skip_cleanup: true
on:
tags: true
condition: $BUILD_PYPI = true && $TRAVIS_TAG != "latest"
condition: $BUILD_PYPI = true && $TRAVIS_TAG != "latest" && $TRAVIS_TAG != "nightly"

View File

@ -14,11 +14,14 @@ bundle: ## Bundle the tutor package in a single "dist/tutor" executable
dist/tutor:
$(MAKE) bundle
tag: ## Create a release, update the "latest" tag and push them to origin
$(MAKE) retag TAG=v$(shell make version)
$(MAKE) retag TAG=latest
nightly: ## Create a "nightly" release
$(MAKE) tag TAG=nightly
retag:
release: ## Create a release, update the "latest" tag and push them to origin
$(MAKE) tag TAG=v$(shell make version)
$(MAKE) tag TAG=latest
tag:
@echo "=== Creating tag $(TAG)"
git tag -d $(TAG) || true
git tag $(TAG)

View File

@ -42,4 +42,6 @@ Releasing a new version
- Replace "Latest" by the version name in CHANGELOG.md.
- Create a commit with the version changelog.
- ``git push``
- ``make tag``
- ``make release``
After a regular push to ``master``, run ``make nightly`` to update the "nightly" tag.