feat(storybook): deploy storybook to github pages
This commit is contained in:
parent
3efed993da
commit
ce3383ca98
26
.github/workflows/ci.yaml
vendored
26
.github/workflows/ci.yaml
vendored
@ -34,20 +34,20 @@ jobs:
|
||||
name: build
|
||||
path: build
|
||||
|
||||
build_storybook:
|
||||
runs-on: windows-latest
|
||||
if: github.event.head_commit.author.name != 'actions'
|
||||
deploy_storybook:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2.1.3
|
||||
with:
|
||||
node-version: '16'
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: yarn build-storybook
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: storybook
|
||||
path: storybook-static
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2.1.3
|
||||
with:
|
||||
node-version: '16'
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: yarn build-storybook -o ./build_storybook
|
||||
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: npx -y -p gh-pages@3.1.0 gh-pages -d ./build_storybook --dest storybook --add -u "github-actions-bot <actions@github.com>"
|
||||
|
||||
check_if_version_upgraded:
|
||||
name: Check if version upgrade
|
||||
|
Loading…
Reference in New Issue
Block a user