From b9766a504100e30613fcd82615ad30edcde8c48f Mon Sep 17 00:00:00 2001 From: n1474335 Date: Thu, 30 Mar 2017 20:17:40 +0100 Subject: [PATCH] Configured Travis CI to deploy to GitHub Pages --- .gitignore | 4 +--- .travis.yml | 6 ++++++ src/core/operations/URL.js | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 34e18dff..570ea499 100755 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ node_modules npm-debug.log -build/dev -build/test -build/node +build docs/* !docs/*.conf.json !docs/*.ico diff --git a/.travis.yml b/.travis.yml index e56d44bc..eb0cc872 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,10 @@ script: - grunt node - grunt prod deploy: + provider: pages skip_cleanup: true + github_token: $GITHUB_TOKEN + on: + branch: master + local_dir: "build/prod/" + target_branch: gh-pages diff --git a/src/core/operations/URL.js b/src/core/operations/URL.js index a00ea9db..c7f68f4d 100755 --- a/src/core/operations/URL.js +++ b/src/core/operations/URL.js @@ -61,7 +61,7 @@ const URL_ = { if (!document) { throw "This operation only works in a browser."; } - + var a = document.createElement("a"); // Overwrite base href which will be the current CyberChef URL to reduce confusion.