pdf_auralia/.drone.yml
Bertrand Benjamin f82fbc2b8e
Some checks reported warnings
Publish to pipy / Build and publish Python 🐍 distributions 📦 to PyPI (push) Has started running
Gitea Actions Demo / Hello-Gitea-Actions (push) Has been cancelled
Fix: work on export to pipy
2023-06-27 11:31:28 +02:00

36 lines
770 B
YAML

---
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 "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_TOKEN
environment:
TAG: ${DRONE_COMMIT_TAG}
PYPI_TOKEN:
from_secret: pypi_token
when:
event:
include:
- tag
# Déclencheur de la pipeline
trigger:
event:
include:
- tag