From ffbd97fb8f4246ca74b21edf1c0581e92ab3e735 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 21 Jan 2022 09:16:27 +0100 Subject: [PATCH] prepare release --- .gitlab-ci.yml | 18 +++++++++++++++++- setup.py | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ea6095..fc44d08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,10 +87,26 @@ build: - dist/* script: - python setup.py sdist bdist_wheel + - cd dist + - find *.tar.gz -type f -exec sha256sum {} \; | sort > sha256sum.lst + - find *.tar.gz -type f -exec sha512sum {} \; | sort > sha512sum.lst pypi: stage: upload rules: - if: '$CI_COMMIT_TAG != null' script: - - twine upload dist/* \ No newline at end of file + - twine upload dist/* + +gitlab: + image: registry.gitlab.com/gitlab-org/release-cli:latest + stage: upload + rules: + - if: '$CI_COMMIT_TAG != null' + before_script: + - echo "upload to gitlab" + script: + - apk --no-cache add curl + - | + release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \ + --assets-link "{\"name\":\"dist\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/python-terraform/-/jobs/${CI_JOB_ID}/artifacts/file/dist\"}" \ diff --git a/setup.py b/setup.py index c7996bf..b6569a9 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ except IOError: setup( name=module_name, - version="1.1.0-dev", + version="1.0.2-dev", url="https://github.com/DomainDrivenArchitecture/python-terraform", license="MIT", author="Freddy Tan",