Commit 43e9d5e8 authored by Adrian DC's avatar Adrian DC
Browse files

chore: gitlab-ci: implement 'gitlab-release' to fill tags releases

parent 02368d8b
Loading
Loading
Loading
Loading
+6 −2
Changes for .gitlab-ci.yml: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -339,7 +339,11 @@ stages:
    - if [ ! "${CI_COMMIT_REF_PROTECTED}" = 'true' ]; then echo '[ERROR] Please protect this tag...'; exit 1; fi
    - pip3 install -q -r requirements-deploy.txt --upgrade
  script:
    - twine upload -u '__token__' -p "${TWINE_PASSWORD}" dist/*
    - tag=${CI_COMMIT_REF_NAME:-$(git describe --always --abbrev=0)}
    - description=$(sh ./changelog.sh "${tag}" | sed -z 's/"/\\"/g')
    - description="${description}"$'\n\n''### Download'$'\n'
    - gitlab-release --description "${description}" --link-prefix '* ' ./dist/*
    - twine upload -u '__token__' -p "${TWINE_PASSWORD}" ./dist/*
  only:
    - tags

@@ -353,7 +357,7 @@ stages:
  before_script:
    - pip3 install -q -r requirements-deploy.txt --upgrade
  script:
    - twine upload -u '__token__' -p "${TWINE_PASSWORD_TEST}" --repository testpypi dist/*
    - twine upload -u '__token__' -p "${TWINE_PASSWORD_TEST}" --repository testpypi ./dist/*
  only:
    - local
  tags:
+2 −0
Changes for README.md: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -298,8 +298,10 @@ JOB_NAME:

- [.gitlab-ci.yml](https://docs.gitlab.com/ee/ci/yaml/): GitLab CI/CD Pipeline Configuration Reference
- [git-chglog](https://github.com/git-chglog/git-chglog): CHANGELOG generator
- [gitlab-release](https://pypi.org/project/gitlab-release/): Utility for publishing on GitLab
- [OCI](https://opencontainers.org): Open Container Initiative
- [peek](https://github.com/phw/peek): Simple GIF screen recorder
- [pexpect](https://pypi.org/project/pexpect/): Interactive console applications controller
- [PyPI](https://pypi.org/): The Python Package Index
- [twine](https://pypi.org/project/twine/): Utility for publishing on PyPI
- [winpty](https://github.com/rprichard/winpty): Windows PTY interface wrapper
+1 −0
Changes for requirements-deploy.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
gitlab-release>=4.5
twine>=3.1.1