--- kind: pipeline name: pdf-auralia-build-and-publish type: docker # Spécifie l'image Docker à utiliser image: python:3.11 # Étapes de la pipeline steps: - name: build-and-publish image: python:3.11 commands: - echo ${DRONE_TAG} - sed -i 's/version = "[^"]*"/version = "${DRONE_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_TOKEN environment: PYPI_TOKEN: from_secret: pypi_token - name: Notify on matrix image: plugins/matrix environment: MATRIX_ROOMID: from_secret: MATRIX_ROOMID MATRIX_ACCESSTOKEN: from_secret: MATRIX_ACCESSTOKEN MATRIX_USERID: from_secret: MATRIX_USERID settings: homeserver: https://matrix.poneyworld.net template: "Une nouvelle version (${DRONE_TAG}) de pdf-oralia est publiée!" # Déclencheur de la pipeline trigger: event: include: - tag