From afbe02301b68f65eb5b160b935c7bb28df044b16 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 16 Jan 2021 15:09:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7netlifly=20deploy=20in=20config.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ae5b6ad..e137914 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,5 +20,21 @@ jobs: paths: - node_modules key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} - - \ No newline at end of file + netlifly-deploy: + docker: + - image: circleci/node:dubnium-browsers + working_directory: ~/repo + steps: + - run: + name: Deploy app + command: sudo npm install netlify-cli -g && netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod + +workflows: + version: 2 + build-deploy: + jobs: + - build + - netlifly-deploy: + requires: + - build + \ No newline at end of file