Feat(core): add drone.yml
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bertrand Benjamin 2023-06-11 06:55:52 +02:00
parent e9898184c6
commit 7325cea867
1 changed files with 35 additions and 0 deletions

35
.drone.yml Normal file
View File

@ -0,0 +1,35 @@
---
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:
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH="/root/.local/bin:$PATH"
- poetry --version
- poetry config pypi-token.pypi $PYPI_PASSWORD
- poetry build
- poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD
environment:
PYPI_USERNAME:
from_secret: pypi_username
PYPI_PASSWORD:
from_secret: pypi_password
when:
event:
include:
- tag
# Déclencheur de la pipeline
trigger:
event:
exclude:
- tag