Skip to content

Commit

Permalink
adapt to talend ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuchet committed Oct 29, 2024
1 parent d20bb9b commit 9b873bf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/before-surge.sh

This file was deleted.

21 changes: 18 additions & 3 deletions .github/workflows/pr-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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 @@ -35,17 +35,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 ${{ github.event.number }} && cd ..
mkdir -p ./demo/${{ github.event.number }}
cp -R storybook-static/* ./demo/${{ github.event.number }}/
cp ../index.html ./demo/${{ github.event.number }}/
mkdir ./demo/${{ github.event.number }}/cmf
mkdir ./demo/${{ github.event.number }}/containers
mkdir ./demo/${{ github.event.number }}/design-system
mkdir ./demo/${{ github.event.number }}/faceted-search
mkdir ./demo/${{ github.event.number }}/theme
mkdir ./demo/${{ github.event.number }}/storybook-one
cp -R packages/cmf/jsdoc ./demo/${{ github.event.number }}/cmf
cp -R packages/containers/storybook-static/* ./demo/${{ github.event.number }}/containers
cp -R packages/design-docs/storybook-static/* ./demo/${{ github.event.number }}/design-system
cp -R packages/faceted-search/storybook-static/* ./demo/${{ github.event.number }}/faceted-search
cp -R packages/theme/dist/* ./demo/${{ github.event.number }}/theme
cp -R packages/storybook-one/storybook-static/* ./demo/${{ github.event.number }}/storybook-one
echo Size of demo:
du -d 1 -h .static
cd demo && git add .
- name: Commit demo for gh-pages
Expand Down
2 changes: 1 addition & 1 deletion .surge/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down

0 comments on commit 9b873bf

Please sign in to comment.