Skip to content

Commit

Permalink
Add script to deploy Storybook from Travis-CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Apr 27, 2020
1 parent 51eeddc commit ace91b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ phpunit.xml
npm-debug.log
/dist
/languages
/storybook-static
google-site-kit*.zip

# Editors
Expand Down
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ jobs:
- stage: test
name: E2E Tests (WordPress 4.9, Gutenberg 4.9)
env: E2E=1 WP_VERSION=4.9.10 GUTENBERG_VERSION=4.9.0
- stage: deploy
name: Deploy Storybook
php: 7.4
before_deploy:
- npm run build:storybook -- -o storybook-static/$TRAVIS_BRANCH
deploy:
- provider: pages
edge: true
github_token: $GITHUB_PERSONAL_ACCESS_TOKEN
keep_history: true
local_dir: storybook-static

services:
- docker
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build:test": "npm run build:production -- --include-tests",
"build:dev": "npm run remove-dist && webpack --mode=development --debug --devtool cheap-source-map --output-pathinfo && npm run build:static",
"build:static": "gulp svg imagemin",
"build:storybook": "build-storybook -c .storybook",
"remove-dist": "rimraf ./dist",
"dev": "npm run build:dev && npm run build:static",
"dev-zip": "npm run build:dev && gulp release",
Expand Down

0 comments on commit ace91b0

Please sign in to comment.