From 396e4be5b3209015fe14a971a28b91b86c584531 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 12 Feb 2021 19:27:33 +0000 Subject: [PATCH] Fix deploy job and put into workflow --- .circleci/config.yml | 49 +++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0b4326a..b0db2be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,15 @@ version: 2 +workflows: # Define a Workflow running the build job, then the deploy job + version: 2 + build-deploy: + jobs: + - build + - deploy: + requires: + - build + filters: + branches: + only: master # Only deploys when the commit is on the Master branch jobs: build: machine: true @@ -7,22 +18,22 @@ jobs: - run: | bash bin/run-tests-with-docker.sh -# https://github.com/circleci/circleci-docs/blob/master/jekyll/_cci1/continuous-deployment-with-heroku.md -deployment: - production: - branch: master - commands: - - | - cat >~/.netrc <~/.netrc <