Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
build: test building website with netlify
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Hippely <mhippely@vmware.com>
  • Loading branch information
hippee-lee committed Oct 8, 2020
1 parent 05b3347 commit e28c89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Default build settings
[build]
command = "yarn website:build && yarn website:deploy"
functions = "dist/netlify"
publish = "dist/website"
environment = { CI = "true", NPM_FLAGS = '--no-optional', CYPRESS_INSTALL_BINARY = "false" }
Expand Down
5 changes: 4 additions & 1 deletion scripts/website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ curl -g https://us-central1-clarity-design-system.cloudfunctions.net/actions -o
find . -type f -name "*.html" -print0 -path ./website/storybook -prune | xargs -0 perl -pi -e 's/\/localhost:6006\//storybook\/angular\/index.html/g'
find . -type f -name "*.js" -print0 -path ./website/storybook -prune | xargs -0 perl -pi -e 's/\/localhost:6006\//storybook\/angular\/index.html/g'

node -r dotenv/config -- ./node_modules/.bin/netlify deploy --dir=./dist/website --message="Website - $GITHUB_REF@$GITHUB_SHA"
# Deploy a preview that can be promoted to production when we are ready
node -r dotenv/config -- ./node_modules/.bin/netlify deploy --dir=./dist/website --message="Website - $GITHUB_REF@$GITHUB_SHA" --site "clarity.design"
# Deploy a version to https://next.clarity.design as 'production'
node -r dotenv/config -- ./node_modules/.bin/netlify deploy --dir=./dist/website --message="Website - $GITHUB_REF@$GITHUB_SHA" --site "next.clarity.design"

0 comments on commit e28c89b

Please sign in to comment.