From ae6bd30923b399082275bba17bc851d729dbfc89 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 21 Jan 2022 09:24:22 +0100 Subject: [PATCH] release --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc44d08..b01d48f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,9 +87,6 @@ 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 @@ -103,10 +100,16 @@ gitlab: stage: upload rules: - if: '$CI_COMMIT_TAG != null' + artifacts: + paths: + - dist/* before_script: - echo "upload to gitlab" script: - apk --no-cache add curl + - cd dist + - find *.tar.gz -type f -exec sha256sum {} \; | sort > sha256sum.lst + - find *.tar.gz -type f -exec sha512sum {} \; | sort > sha512sum.lst - | 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\"}" \