prepare release
This commit is contained in:
parent
d5ad3c7628
commit
ffbd97fb8f
2 changed files with 18 additions and 2 deletions
|
@ -87,10 +87,26 @@ 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
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG != null'
|
- if: '$CI_COMMIT_TAG != null'
|
||||||
script:
|
script:
|
||||||
- twine upload dist/*
|
- 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\"}" \
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -21,7 +21,7 @@ except IOError:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=module_name,
|
name=module_name,
|
||||||
version="1.1.0-dev",
|
version="1.0.2-dev",
|
||||||
url="https://github.com/DomainDrivenArchitecture/python-terraform",
|
url="https://github.com/DomainDrivenArchitecture/python-terraform",
|
||||||
license="MIT",
|
license="MIT",
|
||||||
author="Freddy Tan",
|
author="Freddy Tan",
|
||||||
|
|
Loading…
Reference in a new issue