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