From b5e1563238aa7b606fc68921ab76b327578fe769 Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Thu, 13 Jan 2022 19:14:57 +0100 Subject: [PATCH] :construction_worker: Add netlify config Add files and steps for netlify documentation buidl --- .circleci/config.yml | 14 ++++++++++++++ .gitignore | 4 +++- netlify.toml | 21 +++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 netlify.toml diff --git a/.circleci/config.yml b/.circleci/config.yml index d94a386..d8efaf0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -88,6 +88,20 @@ jobs: root: /tmp paths: - server-doc + + server-doc-deploy: + <<: *shared-config + working_directory: ~/deploy-doc-server + steps: + - attach_workspace: + at: /tmp + - run: + name: Install netlify + command: | + yarn add -D netlify-cli + - run: + name: Deploy app + command: yarn netlify deploy --auth $NETLIFY_AUTH_TOKEN --dir /tmp/server-doc --site $NETLIFY_SITE_ID --prod workflows: version: 2 diff --git a/.gitignore b/.gitignore index 1f5cb18..89a8de0 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,6 @@ lerna-debug.log* !.vscode/launch.json !.vscode/extensions.json .env -docs/ \ No newline at end of file +docs/ +# Local Netlify folder +.netlify diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..b81ae75 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,21 @@ +# example netlify.toml +[build] + command = "yarn run build" + functions = "netlify/functions" + publish = "." + + ## Uncomment to use this redirect for Single Page Applications like create-react-app. + ## Not needed for static site generators. + #[[redirects]] + # from = "/*" + # to = "/index.html" + # status = 200 + + ## (optional) Settings for Netlify Dev + ## https://github.com/netlify/cli/blob/main/docs/netlify-dev.md#project-detection + #[dev] + # command = "yarn start" # Command to start your dev server + # port = 3000 # Port that the dev server will be listening on + # publish = "dist" # Folder with the static content for _redirect file + + ## more info on configuring this file: https://www.netlify.com/docs/netlify-toml-reference/