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