Commit 4125ec22 authored by echel0n's avatar echel0n

Refactored bumpversion config to properly handle develop and master versioning schemes.

parent 6438042a
......@@ -109,7 +109,7 @@ release:build:master:
- npm install -qs
- pip install bumpversion
- pip install -r requirements-dev.txt
- bumpversion --allow-dirty patch package.json sickrage/version.txt
- bumpversion --allow-dirty release package.json sickrage/version.txt
- npm run build
# - python setup.py extract_messages
# - crowdin-cli-py upload sources
......@@ -121,6 +121,11 @@ release:build:master:
- git tag -a $(cat sickrage/version.txt) -m "Release v$(cat sickrage/version.txt)"
- git commit -m "[TASK] Releasing v$(cat sickrage/version.txt)"
- git push https://$GIT_ACCESS_USER:[email protected]$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:$CI_COMMIT_REF_NAME --follow-tags
- git checkout develop
- bumpversion --allow-dirty patch package.json sickrage/version.txt
- git add --all
- git commit -m "[TASK] Bump develop branch to v$(cat sickrage/version.txt)"
- git push https://$GIT_ACCESS_USER:[email protected]$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:$CI_COMMIT_REF_NAME --follow-tags
only:
- master
except:
......@@ -141,7 +146,7 @@ release:build:develop:
- npm install -qs
- pip install bumpversion
- pip install -r requirements-dev.txt
- bumpversion --allow-dirty preversion package.json sickrage/version.txt
- bumpversion --allow-dirty dev package.json sickrage/version.txt
- npm run build
# - python setup.py extract_messages
# - crowdin-cli-py upload sources
......@@ -161,6 +166,7 @@ release:build:develop:
- triggers
variables:
- $CI_COMMIT_MESSAGE =~ /\[TASK\] Pre-Releasing/
- $CI_COMMIT_MESSAGE =~ /\[TASK\] Bump/
release:sentry:master:
stage: release_sentry
......
[bumpversion]
current_version = 9.4.186.dev1
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<releaselevel>[a-z]+)(?P<preversion>\d+))?
serialize =
{major}.{minor}.{patch}.{releaselevel}{preversion}
{major}.{minor}.{patch}
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
serialize =
{major}.{minor}.{patch}.{release}{dev}
{major}.{minor}.{patch}
[bumpversion:part:release]
optional_value = gamma
values =
dev
gamma
[metadata]
description-file = README.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment