From 18f82ffb969040118fcc0d066e2c77ac48992583 Mon Sep 17 00:00:00 2001 From: Tarskan <55380090+Tarskan@users.noreply.github.com> Date: Tue, 9 Nov 2021 15:09:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Config=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 29 +++-------------------------- .gitignore | 3 +++ 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8f577ef..e36e2ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,26 +22,9 @@ jobs: - restore_cache: key: dependencies-{{ checksum "package.json" }}-v1 - run: yarn test:unit - server-doc-build: - <<: *shared-config - steps: - - checkout - - restore_cache: - key: dependencies-{{ checksum "package.json" }}-v1 - - run: yarn doc:build - - run: - name: Copy deployment artifacts to workspace - command: | - cp docs/ /tmp/server-doc -r - - store_artifacts: - path: /tmp/server-doc - - persist_to_workspace: - root: /tmp - paths: - - server-doc server-doc-deploy: <<: *shared-config - working_directory: ~/deploy-doc-server + working_directory: ~/repo steps: - attach_workspace: at: /tmp @@ -50,7 +33,7 @@ jobs: command: yarn add netlify-cli -D - run: name: Deploy app - command: yarn netlify deploy --prod --dir=/tmp/server-doc + command: yarn netlify deploy --prod --dir=/repo workflows: version: 2 @@ -60,16 +43,10 @@ workflows: - testUnit: requires: - build - - server-doc-build: + - server-doc-deploy: requires: - build - testUnit - filters: - branches: - only: main - - server-doc-deploy: - requires: - - server-doc-build filters: branches: only: main \ No newline at end of file diff --git a/.gitignore b/.gitignore index b2be972..363d805 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ dist-ssr .idea .env .env* + +# Local Netlify folder +.netlify