diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..35a647a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +# This config was automatically generated from your source code +# Stacks detected: deps:node:. +version: 2.1 +orbs: + node: circleci/node@5 +jobs: + build-node: + # Build node project + executor: node/default + steps: + - checkout + - node/install-packages: + cache-path: ~/project/node_modules + override-ci-command: npm install + - run: + command: npm run build + - run: + name: Create the ~/artifacts directory if it doesn't exist + command: mkdir -p ~/artifacts + # Copy output to artifacts dir + - run: + name: Copy artifacts + command: cp -R build dist public .output .next .docusaurus ~/artifacts 2>/dev/null || true + - store_artifacts: + path: ~/artifacts + destination: node-build + deploy: + # This is an example deploy job, not actually used by the workflow + docker: + - image: cimg/base:stable + steps: + # Replace this with steps to deploy to users + - run: + name: deploy + command: '#e.g. ./deploy.sh' +workflows: + build: + jobs: + - build-node + # - deploy: + # requires: + # - build-node