Skip to content

Commit

Permalink
Change GitHub pages deploy strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Aug 27, 2019
1 parent 474336f commit 8e2f1d3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ node_modules/
npm-debug.log
package-lock.json

# deploy keys
deploy_key
deploy_key.pub

# project specific
coverage/
test/web-platform-tests/
Expand Down
21 changes: 16 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
sudo: false

branches:
only:
- master

language: node_js
node_js: stable

Expand All @@ -13,10 +17,17 @@ script:
before_deploy:
- bash scripts/deploy-live-viewer.sh

before_deploy:
- openssl aes-256-cbc -K $encrypted_3767330e5762_key -iv $encrypted_3767330e5762_iv -in deploy_key.enc -out deploy_key -d

deploy:
provider: pages
local-dir: out
committer-from-gh: true
skip-cleanup: true
keep-history: true
github-token: $GH_TOKEN
local_dir: out
deploy_key: deploy_key
edge:
branch: master

notifications:
email:
on_success: never
on_failure: always
Binary file added deploy_key.enc
Binary file not shown.

0 comments on commit 8e2f1d3

Please sign in to comment.