release
This commit is contained in:
parent
ae6bd30923
commit
9dd3664d8c
1 changed files with 7 additions and 5 deletions
|
@ -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\"}" \
|
||||
|
|
Loading…
Reference in a new issue