Add release pipeline #12
1 changed files with 22 additions and 2 deletions
24
.drone.yml
24
.drone.yml
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: python-3-8-tests
|
||||
name: test_python-3-8
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
|
@ -21,7 +21,7 @@ trigger:
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: python-3-9-tests
|
||||
name: test_python-3-9
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
|
@ -37,3 +37,23 @@ steps:
|
|||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: release
|
||||
|
||||
steps:
|
||||
- name: release new version
|
||||
image: mwalbeck/python-poetry:1.1-3.8
|
||||
environment:
|
||||
POETRY_VIRTUALENVS_CREATE: "false"
|
||||
POETRY_PYPI_TOKEN_PYPI:
|
||||
from_secret: poetry_pypi_token
|
||||
commands:
|
||||
- poetry install
|
||||
- poetry publish --build
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
|
Loading…
Reference in a new issue