From 83caba75b34c840ab8e4ac6d2618e8138a1cb3e5 Mon Sep 17 00:00:00 2001 From: NicolasLepinette Date: Sun, 28 Mar 2021 19:40:35 +0200 Subject: [PATCH] update --- .circleci/config.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0c7093f..8a60b82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,16 +46,28 @@ jobs: - run: name: Build Prod command : yarn build + - run: + name: Copy build to workspace + command: | + cp build/ /tmp/build -r + - store_artifacts: + path: /tmp/build + - persist_to_workspace: + root: /tmp + paths: + - build Netlify: docker: - image: circleci/node:14.10.1 working_directory: ~/deploy-netlify steps: + - attach_workspace: + at: /tmp - run: name: Deploy command: | sudo npm install -g --unsafe-perm=true netlify-cli - netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID + netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/build --site $NETLIFY_SITE_ID workflows: Build_Test_Deploy: jobs: