ci: add new jobs for deploy storybook

This commit is contained in:
Muhammad Rivki
2020-03-23 20:35:10 +07:00
parent 58b2b97cfa
commit 4083680e8c
+24
View File
@@ -3,6 +3,8 @@ name: Frontend CI
on:
pull_request:
types: [opened, reopened, edited, synchronize]
push:
branches: master
jobs:
build:
@@ -40,3 +42,25 @@ jobs:
yarn test
env:
CI: true
jobs:
deoloy-storybook:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: build storybook
if: github.event_name === 'push' && github.ref == 'refs/heads/master'
run: |
yarn build-storybook
- name: deploy gh-pages
if: github.event_name === 'push' && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@3.4.2
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: packages/core/storybook-static