Skip to content

Commit

Permalink
adapt demo and clean-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuchet committed Oct 31, 2024
1 parent 4a61f4c commit b13063c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clean-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout demo branch
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
path: demo
ref: gh-pages
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7

- name: Use Node.js
uses: ./.github/actions/setup-node
Expand All @@ -38,17 +38,32 @@ jobs:
run: yarn test:demo

- name: Checkout demo branch
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
path: demo
ref: gh-pages

- name: Add demo and commit it
# symlink creation : workaround to be able to use service worker on storybook both in local and via github pages deployment
run: |
echo "Prepare demo folder"
cd demo && git rm -rf --ignore-unmatch ./main && cd ..
mkdir -p ./demo/main
cp -R storybook-static/* ./demo/main
cp ./index.html ./demo/main/
mkdir ./demo/main/cmf
mkdir ./demo/main/containers
mkdir ./demo/main/design-system
mkdir ./demo/main/faceted-search
mkdir ./demo/main/theme
mkdir ./demo/main/storybook-one
cp -R packages/cmf/jsdoc ./demo/main/cmf
cp -R packages/containers/storybook-static/* ./demo/main/containers
cp -R packages/design-docs/storybook-static/* ./demo/main/design-system
cp -R packages/faceted-search/storybook-static/* ./demo/main/faceted-search
cp -R packages/theme/dist/* ./demo/main/theme
cp -R packages/storybook-one/storybook-static/* ./demo/main/storybook-one
echo Size of demo:
du -d 1 -h ./demo/main
cd demo && git add .
- name: Commit demo for gh-pages
Expand Down

0 comments on commit b13063c

Please sign in to comment.