Skip to content

Commit

Permalink
ci(travis): try to fix travis script to deploy docs automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
braposo committed May 5, 2019
1 parent de2b505 commit b5fb12d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@ jobs:
- yarn test --coverage && codecov
skip_cleanup: true
- stage: release
node_js: lts/*
before_deploy:
- yarn docs:build
deploy:
- provider: script
skip_cleanup: true
github_token: $GH_TOKEN
script: yarn release
script: yarn semantic-release
- provider: pages
skip_cleanup: true
local_dir: .docz/dist/
github_token: $GH_TOKEN
keep_history: true
on:
branch: master
if: branch = master
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"test": "jest --no-cache --setupFiles dotenv/config",
"lint": "eslint src/ --ext .js",
"commit": "yarn git-cz",
"semantic-release": "semantic-release",
"release": "yarn docs:build && yarn docs:deploy && yarn semantic-release"
"semantic-release": "semantic-release"
},
"keywords": [
"figma",
Expand Down

0 comments on commit b5fb12d

Please sign in to comment.