Przeglądaj źródła

Configured Travis CI to deploy to GitHub Pages

n1474335 8 lat temu
rodzic
commit
b9766a5041
3 zmienionych plików z 8 dodań i 4 usunięć
  1. 1 3
      .gitignore
  2. 6 0
      .travis.yml
  3. 1 1
      src/core/operations/URL.js

+ 1 - 3
.gitignore

@@ -1,8 +1,6 @@
 node_modules
 npm-debug.log
-build/dev
-build/test
-build/node
+build
 docs/*
 !docs/*.conf.json
 !docs/*.ico

+ 6 - 0
.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

+ 1 - 1
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.