use protected tags for releasing

This commit is contained in:
jem 2022-01-21 13:23:50 +01:00
parent 9dd3664d8c
commit dcbeb0e934
2 changed files with 14 additions and 2 deletions

View file

@ -91,7 +91,7 @@ build:
pypi: pypi:
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_TAG != null' - if: '$CI_COMMIT_TAG =~ /^release.-*$/'
script: script:
- twine upload dist/* - twine upload dist/*
@ -99,7 +99,7 @@ gitlab:
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_TAG != null' - if: '$CI_COMMIT_TAG =~ /^release.-*$/'
artifacts: artifacts:
paths: paths:
- release/* - release/*

12
doc/releaseing.md Normal file
View file

@ -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
```