👷(ci) put storybook build in a gh-pages sub folder

Our main goal doing this is to allow us to have multiple static build
standing next to each other on our gh-pages.
This commit is contained in:
Nathan Vasse
2024-02-14 15:21:46 +01:00
committed by NathanVss
parent 9795b7184b
commit def859ee0b
6 changed files with 16 additions and 7 deletions

9
scripts/predeploy-ghpages Executable file
View File

@@ -0,0 +1,9 @@
rm -rf ghpages-output
mkdir -p ghpages-output/storybook
cd packages/react && yarn build-storybook
cd ../..
mv packages/react/storybook-static/* ghpages-output/storybook
touch ./ghpages-output/.nojekyll
touch ./ghpages-output/storybook/.nojekyll