From f06bcf021124a5685c8f1b6c65b6f6166aa35e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Voituret?= Date: Wed, 6 Nov 2019 23:20:33 +0100 Subject: [PATCH] fix: add branch filtering --- .circleci/config.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9899f90..2f09241 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,9 +17,21 @@ jobs: - image: circleci/python:3.6.1 steps: - checkout - - run: + - run: name: package command: python setup.py bdist - run: name: upload to PyPi command: pip install twine && twine upload dist/* +workflows: + version: 2 + test-and-deploy: + jobs: + - test + - upload: + filters: + branches: + only: + - master + requires: + - test \ No newline at end of file