pdf_auralia/.drone.yml

35 lines
740 B
YAML
Raw Normal View History

2023-06-27 09:19:28 +00:00
---
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:
2023-06-27 09:59:40 +00:00
- echo ${DRONE_TAG}
2023-06-27 09:39:18 +00:00
- sed -i "s/VERSION_PLACEHOLDER/${DRONE_TAG}/g" pyproject.toml
2023-06-27 09:19:28 +00:00
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH="/root/.local/bin:$PATH"
- poetry --version
- poetry build
2023-06-27 09:31:28 +00:00
- poetry publish --username __token__ --password $PYPI_TOKEN
2023-06-27 09:19:28 +00:00
environment:
2023-06-27 09:31:28 +00:00
PYPI_TOKEN:
from_secret: pypi_token
2023-06-27 09:19:28 +00:00
when:
event:
include:
- tag
# Déclencheur de la pipeline
trigger:
event:
include:
- tag