From 893eb3aa8c949395739c095602bbb34514146cf9 Mon Sep 17 00:00:00 2001 From: William Luke Date: Thu, 3 Feb 2022 14:11:30 +0300 Subject: [PATCH] ci: add publish to pipeline --- .drone.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 12d2294..6b4e2c1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,6 +22,15 @@ steps: - name: poetry_cache path: /root/.cache/pypoetry +volumes: + - name: poetry_cache + host: + path: /tmp/cache/drone/pypoetry +--- +kind: pipeline +name: publish + +steps: - name: publish image: python:3.7.2 commands: @@ -31,11 +40,17 @@ steps: - poetry run semantic-release publish --noop environment: LOGLEVEL: info - volumes: - name: poetry_cache path: /root/.cache/pypoetry + when: + branch: + - master + event: + - push +depends_on: +- run_tests volumes: - name: poetry_cache host: - path: /tmp/cache/drone/pypoetry + path: /tmp/cache/drone/pypoetry \ No newline at end of file