Fix: yaml syntax
Some checks are pending
Gitea Actions Demo / Hello-Gitea-Actions (push) Has started running
Publish to pipy / Build and publish Python 🐍 distributions 📦 to PyPI (push) Has started running

This commit is contained in:
Bertrand Benjamin 2023-06-27 11:39:18 +02:00
parent f82fbc2b8e
commit a8550712fe
2 changed files with 3 additions and 4 deletions

View File

@ -11,15 +11,14 @@ steps:
- name: build-and-publish - name: build-and-publish
image: python:3.11 image: python:3.11
commands: commands:
- echo "Tag: ${TAG}" - echo "Tag: ${DRONE_TAG}"
- sed -i "s/{{VERSION_PLACEHOLDER}}/${TAG}/g" pyproject.toml - sed -i "s/VERSION_PLACEHOLDER/${DRONE_TAG}/g" pyproject.toml
- curl -sSL https://install.python-poetry.org | python3 - - curl -sSL https://install.python-poetry.org | python3 -
- export PATH="/root/.local/bin:$PATH" - export PATH="/root/.local/bin:$PATH"
- poetry --version - poetry --version
- poetry build - poetry build
- poetry publish --username __token__ --password $PYPI_TOKEN - poetry publish --username __token__ --password $PYPI_TOKEN
environment: environment:
TAG: ${DRONE_COMMIT_TAG}
PYPI_TOKEN: PYPI_TOKEN:
from_secret: pypi_token from_secret: pypi_token

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "pdf-oralia" name = "pdf-oralia"
version = "{{VERSION_PLACEHOLDER}}" version = "VERSION_PLACEHOLDER"
description = "" description = ""
authors = ["Bertrand Benjamin <benjamin.bertrand@opytex.org>"] authors = ["Bertrand Benjamin <benjamin.bertrand@opytex.org>"]
readme = "README.md" readme = "README.md"