release
This commit is contained in:
parent
ffbd97fb8f
commit
ae6bd30923
1 changed files with 6 additions and 3 deletions
|
@ -87,9 +87,6 @@ build:
|
||||||
- dist/*
|
- dist/*
|
||||||
script:
|
script:
|
||||||
- python setup.py sdist bdist_wheel
|
- 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:
|
pypi:
|
||||||
stage: upload
|
stage: upload
|
||||||
|
@ -103,10 +100,16 @@ gitlab:
|
||||||
stage: upload
|
stage: upload
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG != null'
|
- if: '$CI_COMMIT_TAG != null'
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- dist/*
|
||||||
before_script:
|
before_script:
|
||||||
- echo "upload to gitlab"
|
- echo "upload to gitlab"
|
||||||
script:
|
script:
|
||||||
- apk --no-cache add curl
|
- 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 \
|
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\":\"dist\",\"url\":\"https://gitlab.com/domaindrivenarchitecture/python-terraform/-/jobs/${CI_JOB_ID}/artifacts/file/dist\"}" \
|
||||||
|
|
Loading…
Reference in a new issue