Skip to content

Commit

Permalink
ci(circleci): add publish job for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
B4rtware committed Sep 8, 2020
1 parent 15a0cd9 commit c80db21
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
name: Trigger workflows
command: chmod +x .circleci/circle_trigger.sh && .circleci/circle_trigger.sh

publish:
docker:
- image: circleci/python:3.8.5-buster
steps:
- checkout
- run:
name: Publish to PyPi
command: poetry publish

tests:
docker:
- image: b4rtware/morpho-test:python3.8.3-openjdk11-buster
Expand Down Expand Up @@ -147,6 +156,13 @@ workflows:
when: << pipeline.parameters.trigger >>
jobs:
- trigger-workflows
- publish:
filters:
tags:
only: /^v\d+\.\d+\.\d+((b|a)\d+)?/
branches:
ignore: /.*/


docs:
when: << pipeline.parameters.docs >>
Expand Down

0 comments on commit c80db21

Please sign in to comment.