Skip to content

Commit

Permalink
Use CircleCI context for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmaanT committed Aug 14, 2019
1 parent e969776 commit f98a996
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- store_artifacts:
path: test_results
destination: trl
deploy:
publish:
docker:
- image: circleci/python:3.7.1
steps:
Expand All @@ -44,7 +44,7 @@ jobs:
name: Init .pypirc
command: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = pennappslabs" >> ~/.pypirc
echo -e "username = $PYPI_USERNAME" >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
- run:
name: Create packages
Expand All @@ -57,13 +57,14 @@ jobs:
workflows:
version: 2
build-and-deploy:
build-and-publish:
jobs:
- build:
filters:
tags:
only: /.*/
- deploy:
- publish:
context: pypi-publish
requires:
- build
filters:
Expand Down

0 comments on commit f98a996

Please sign in to comment.