Browse Source

👷 Add netlify config

Add files and steps for netlify documentation buidl
pull/3/head
Anatole-DC 4 years ago
parent
commit
b5e1563238
  1. 14
      .circleci/config.yml
  2. 2
      .gitignore
  3. 21
      netlify.toml

14
.circleci/config.yml

@ -89,6 +89,20 @@ jobs:
paths: paths:
- server-doc - 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: workflows:
version: 2 version: 2
build-test-and-lint: build-test-and-lint:

2
.gitignore

@ -35,3 +35,5 @@ lerna-debug.log*
!.vscode/extensions.json !.vscode/extensions.json
.env .env
docs/ docs/
# Local Netlify folder
.netlify

21
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/
Loading…
Cancel
Save