Skip to content

Commit 37c9cf0

Browse files
authored
fix(opensource): copy storybook files to root (#4099)
* fix(storybook): serve content from root Update push to gh pages instructions to no longer ignore storybook's output files * fix(opensource): copy storybook files to root Refactor gitignore for gh-pages
1 parent f48c2a9 commit 37c9cf0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.storybook/gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*
2+
!.gitignore
3+
!LICENSE
4+
!package.json
5+
!THIRD_PARTY_LICENSES
6+
!storybook

scripts/cut_release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ push_to_gh_pages() {
144144
fi
145145
git checkout -b gh-pages || return 1
146146
rm -rf build
147-
cp -R storybook/. ./ || return 1
148-
cp examples/gitignore .gitignore || return 1 # Move this when we remove styleguidist
147+
cp .storybook/gitignore .gitignore || return 1
149148
git rm -rf --cached . || return 1
149+
cp -R storybook/. ./ || return 1
150150
git add -A || return 1
151151
git commit --no-verify -am "build(storybook): v$VERSION" || return 1
152152
git push release gh-pages --force --no-verify || return 1

0 commit comments

Comments
 (0)