From dcbeb0e934ff446667fcb61a81b8896fb9da2895 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 21 Jan 2022 13:23:50 +0100 Subject: [PATCH] use protected tags for releasing --- .gitlab-ci.yml | 4 ++-- doc/releaseing.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 doc/releaseing.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c21553..5412ccf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,7 +91,7 @@ build: pypi: stage: upload rules: - - if: '$CI_COMMIT_TAG != null' + - if: '$CI_COMMIT_TAG =~ /^release.-*$/' script: - twine upload dist/* @@ -99,7 +99,7 @@ gitlab: image: registry.gitlab.com/gitlab-org/release-cli:latest stage: upload rules: - - if: '$CI_COMMIT_TAG != null' + - if: '$CI_COMMIT_TAG =~ /^release.-*$/' artifacts: paths: - release/* diff --git a/doc/releaseing.md b/doc/releaseing.md new file mode 100644 index 0000000..172c4b8 --- /dev/null +++ b/doc/releaseing.md @@ -0,0 +1,12 @@ +## Release + +``` +adjust version no in build.py to release version no. +git commit -am "release" +git tag -am "release" release-[release version no] +git push --follow-tags +increase version no in build.py +git commit -am "version bump" +git push +pip3 install --upgrade --user ddadevops +``` \ No newline at end of file