Skip to content

Commit

Permalink
ci: add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpy committed May 24, 2020
1 parent 3baa9af commit 940c810
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Install and Build
run: |
npm install
npm run build-storybook
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .storybook
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"lint": "eslint --fix --ext .js,.vue src stories",
"test": "jest",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"deploy-storybook": "storybook-to-ghpages"
"build-storybook": "build-storybook"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -58,7 +57,6 @@
"@storybook/addon-options": "^5.2.8",
"@storybook/addon-storysource": "^5.2.8",
"@storybook/addons": "^5.2.8",
"@storybook/storybook-deployer": "^2.8.6",
"@storybook/vue": "^5.2.8",
"@vue/eslint-config-standard": "^5.0.1",
"@vue/test-utils": "^1.0.2",
Expand Down

0 comments on commit 940c810

Please sign in to comment.