use protected tags for releasing
This commit is contained in:
parent
9dd3664d8c
commit
dcbeb0e934
2 changed files with 14 additions and 2 deletions
|
@ -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/*
|
||||
|
|
12
doc/releaseing.md
Normal file
12
doc/releaseing.md
Normal 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
|
||||
```
|
Loading…
Reference in a new issue