use protected tags for releasing

merge-requests/2/merge
jem 2 years ago
parent 9dd3664d8c
commit dcbeb0e934

@ -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/*

@ -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…
Cancel
Save