From 9dd3664d8ca1f58cc4b476622fe7e8e2398e6c50 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 21 Jan 2022 09:31:40 +0100 Subject: [PATCH] release --- .gitlab-ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b01d48f..0c21553 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -102,14 +102,16 @@ gitlab: - if: '$CI_COMMIT_TAG != null' artifacts: paths: - - dist/* + - release/* 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 + - cp -r dist release + - cd release + - rm *.whl + - find . -type f -exec sha256sum {} \; | sort > sha256sum.lst + - find . -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\"}" \ + --assets-link "{\"name\":\"release\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/python-terraform/-/jobs/${CI_JOB_ID}/artifacts/file/release\"}" \