Skip to content

Commit 222c879

Browse files
committed
Change GitHub pages deploy strategy
1 parent 474336f commit 222c879

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ node_modules/
33
npm-debug.log
44
package-lock.json
55

6+
# deploy keys
7+
deploy_key
8+
deploy_key.pub
9+
610
# project specific
711
coverage/
812
test/web-platform-tests/

.travis.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
sudo: false
22

3+
branches:
4+
only:
5+
- master
6+
37
language: node_js
48
node_js: stable
59

@@ -11,12 +15,17 @@ script:
1115
- yarn test
1216

1317
before_deploy:
14-
- bash scripts/deploy-live-viewer.sh
18+
- bash scripts/deploy-live-viewer.sh
19+
- openssl aes-256-cbc -K $encrypted_3767330e5762_key -iv $encrypted_3767330e5762_iv -in deploy_key.enc -out deploy_key -d
1520

1621
deploy:
1722
provider: pages
18-
local-dir: out
19-
committer-from-gh: true
20-
skip-cleanup: true
21-
keep-history: true
22-
github-token: $GH_TOKEN
23+
local_dir: out
24+
deploy_key: deploy_key
25+
edge:
26+
branch: master
27+
28+
notifications:
29+
email:
30+
on_success: never
31+
on_failure: always

deploy_key.enc

3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)