Skip to content

Commit d7c997c

Browse files
committedOct 16, 2019
Auto-deploy website
1 parent 64b68a4 commit d7c997c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+5927
-5913
lines changed
 

‎.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ node_modules/
22
npm-debug.log*
33
yarn-error.log*
44
lerna-debug.log*
5+
56
/packages/*/es/
67
/packages/*/umd/
78
/packages/*/index.js
89
/doc.json
10+
911
.vscode
12+
13+
/website-deploy-key
14+
/website-deploy-key.pub

‎.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,19 @@ jobs:
1717
script: lerna publish from-git --yes --pre-dist-tag next
1818
on:
1919
tags: true
20+
- stage: Deploy Website
21+
if: branch = website
22+
before_script: yarn build
23+
script: echo "Deploying website to https://reacttraining.com/reach-ui/"
24+
before_deploy:
25+
- openssl aes-256-cbc -K $encrypted_e12d3fc86b46_key -iv $encrypted_e12d3fc86b46_iv
26+
-in website-deploy-key.enc -out website-deploy-key -d
27+
- chmod 600 website-deploy-key
28+
- eval $(ssh-agent -s)
29+
- ssh-add website-deploy-key
30+
deploy:
31+
provider: script
32+
script: bash scripts/deploy-website.sh
33+
skip_cleanup: true
34+
on:
35+
branch: website

0 commit comments

Comments
 (0)
Please sign in to comment.