ci: add publish to pipeline
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build was killed Details

This commit is contained in:
William Luke 2022-02-03 14:11:30 +03:00
parent 31f14aac47
commit 893eb3aa8c
1 changed files with 17 additions and 2 deletions

View File

@ -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