Copy component READMEs to docs folder before GH page deploy. (https://github.com/woocommerce/woocommerce-admin/pull/2952)

This commit is contained in:
Jeff Stieler 2019-09-25 09:37:05 -07:00 committed by GitHub
parent 17abde4b18
commit d2de060048
1 changed files with 7 additions and 0 deletions

View File

@ -41,6 +41,13 @@ branches:
only:
- master
before_deploy:
# Remove our unneeded symlink.
- rm docs/components/packages
# Copy each component README to the docs folder.
- find packages/components/src -type f -name 'README.md' | sed 's/\(packages\/components\/src\/\)\(.*\)README\.md/docs\/components\/packages\/\2/g' | xargs mkdir -p
- find packages/components/src -type f -name 'README.md' | sed 's/\(packages\/components\/src\/\)\(.*\)\(README\.md\)/\1\2\3 docs\/components\/packages\/\2/g' | xargs -n2 cp
deploy:
local_dir: docs
provider: pages