Copy component READMEs to docs folder before GH page deploy. (https://github.com/woocommerce/woocommerce-admin/pull/2952)
This commit is contained in:
parent
17abde4b18
commit
d2de060048
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue