diff --git a/.drone.yml b/.drone.yml index db6dfdb..788cad6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,14 +11,17 @@ steps: - name: build-and-publish image: python:3.11 commands: + - echo "Tag: ${TAG}" + - sed -i "s/{{VERSION_PLACEHOLDER}}/${TAG}/g" pyproject.toml - curl -sSL https://install.python-poetry.org | python3 - - export PATH="/root/.local/bin:$PATH" - poetry --version - poetry build - - poetry publish --username __token__ --password $PYPI_PASSWORD + - poetry publish --username __token__ --password $PYPI_TOKEN environment: - PYPI_PASSWORD: - from_secret: pypi_password + TAG: ${DRONE_COMMIT_TAG} + PYPI_TOKEN: + from_secret: pypi_token when: event: diff --git a/pyproject.toml b/pyproject.toml index f9aa553..570af6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pdf-oralia" -version = "0.2.6" +version = "{{VERSION_PLACEHOLDER}}" description = "" authors = ["Bertrand Benjamin "] readme = "README.md"