From f98a996ffb07224dfcfc3b9fbfb06d363e3b67cc Mon Sep 17 00:00:00 2001 From: Armaan Tobaccowalla <13340433+ArmaanT@users.noreply.github.com> Date: Wed, 14 Aug 2019 15:52:38 -0400 Subject: [PATCH] Use CircleCI context for deploy --- .circleci/config.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4b3b4a0..1ce8558 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ jobs: - store_artifacts: path: test_results destination: trl - deploy: + publish: docker: - image: circleci/python:3.7.1 steps: @@ -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 @@ -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: