fix: use CI_COMMIT_TAG from gitlab to detect version
This commit is contained in:
parent
1f320c1ad8
commit
3529809970
@ -4,10 +4,8 @@ stages:
|
|||||||
publish-pypi:
|
publish-pypi:
|
||||||
stage: package
|
stage: package
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
environment:
|
|
||||||
PRIVATE_PYPY_VERSION=1.120.1
|
|
||||||
script:
|
script:
|
||||||
- sed -i -e 's/1.12.1/${PRIVATE_PYPY_VERSION}/g' aiohttp_pydantic/__init__.py
|
- sed -i -e 's/1.12.1/${CI_COMMIT_TAG}/g' aiohttp_pydantic/__init__.py
|
||||||
- pip install -U setuptools wheel pip; pip install invoke
|
- pip install -U setuptools wheel pip; pip install invoke
|
||||||
- invoke upload --pypi-user ${PYPI_REPO_USER} --pypi-password ${PYPI_REPO_PASSWORD} --pypi-url ${PYPI_REPO_URL}
|
- invoke upload --pypi-user ${PYPI_REPO_USER} --pypi-password ${PYPI_REPO_PASSWORD} --pypi-url ${PYPI_REPO_URL}
|
||||||
only:
|
only:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user