Forráskód Böngészése

Configured Travis CI to deploy GitHub Releases

n1474335 8 éve
szülő
commit
8106ba5bc6

+ 17 - 8
.travis.yml

@@ -1,6 +1,6 @@
 language: node_js
 language: node_js
 node_js:
 node_js:
-  - "node"
+  - node
 install: npm install
 install: npm install
 before_script:
 before_script:
   - npm install -g grunt
   - npm install -g grunt
@@ -11,10 +11,19 @@ script:
   - grunt node
   - grunt node
   - grunt prod
   - grunt prod
 deploy:
 deploy:
-  provider: pages
-  skip_cleanup: true
-  github_token: $GITHUB_TOKEN
-  on:
-    branch: master
-  local_dir: "build/prod/"
-  target_branch: gh-pages
+  - provider: pages
+    skip_cleanup: true
+    github_token: $GITHUB_TOKEN
+    local_dir: build/prod/
+    target_branch: gh-pages
+    on:
+      branch: master
+  - provider: releases
+    skip_cleaup: true
+    api_key:
+      secure: Lbya9e1a6bUeJLKsjuqRaNF/BNr7iqSjV0/9rhWbTCc5d1cd+A6DGnDqvw47S2x/+8b08XR5Umas5dS6KU4lLAZQ5DFJgKEuOqUDqz7fOfIZyaRKe8HBTrUn3c1zaqpbrIDQHAOwwEMSx3W+SXmFuniIHRkBFALfK/luyHb4u6e1vq9AsX59A6ICOl5fpGD8kHDtdFZtgCrrZ5tkX5wweiRUbro+LBNlfBCaXeuUwnigU0chAGx8wJWeSvHrndGoPPFEXc0MT4QPlI+q6R3AiO/mwS2/nLhEIGt4jrWUtyFQD9gFLZXg7Z6GC5pKqyf2EQXzgC8Kggybmbg5/MiWj1ns0d1XMK26r50bHD/9K7Kzlh5vq8Sum4DYWtuT4AsWgL/PfUEvB1FbF4InRJoIlbT3pWj9zNFKTyBNcvUchPk1uBE1Ldn5yPPZoSgdKO0ZiGjn/Qx0ByaDMGJbM5KMg3ALewJmaCiCbnvAaVvAm2UY6GrVK15JiGVn08GhliSzsx6E48ZcFtNJBwHK8MAimbTRyHR6aStJbEYIgoNiAjVv5m0twee/XknDvhULG2tor9chwhnqKb4kvaYPqbVuHNPyDT8VkLsHcpgeD2MKxGTq81NBgPz3rP3T1yWMxsuvhxoH91tIT8mU1jo8/e3BJYogKyRZXxwIHaF7ScDQZ4c=
+    file_glob: true
+    file: build/prod/**/*
+    on:
+      repo: gchq/CyberChef
+      tags: true

+ 0 - 50
build/prod/.htaccess

@@ -1,50 +0,0 @@
-# Serve up .htm files as binary files rather than text/html.
-# This allows cyberchef.htm to be downloaded rather than opened in the browser.
-AddType application/octet-stream .htm
-
-# Fix Apache bug #45023 where "-gzip" is appended to all ETags, preventing 304 responses
-<IfModule mod_headers.c>
-    RequestHeader edit "If-None-Match" "^\"(.*)-gzip\"$" "\"$1\""
-    Header edit "ETag" "^\"(.*[^g][^z][^i][^p])\"$" "\"$1-gzip\""
-</IfModule>
-
-# Set gzip compression on all resources that support it
-<IfModule mod_deflate.c>
-    SetOutputFilter DEFLATE
-</IfModule>
-
-# Set Expires headers on various resources
-<IfModule mod_expires.c>
-    ExpiresActive On
-    
-    # 10 minutes
-    ExpiresDefault "access plus 600 seconds"
-    
-    # 30 days
-    ExpiresByType image/x-icon "access plus 2592000 seconds"
-    ExpiresByType image/jpeg "access plus 2592000 seconds"
-    ExpiresByType image/png "access plus 2592000 seconds"
-    ExpiresByType image/gif "access plus 2592000 seconds"
-    
-    # 7 days
-    ExpiresByType text/css "access plus 604800 seconds"
-    ExpiresByType text/javascript "access plus 604800 seconds"
-    ExpiresByType application/javascript "access plus 604800 seconds"
-    ExpiresByType text/html "access plus 604800 seconds"
-</IfModule>
-
-# Set Cache-Control headers on various resources
-<IfModule mod_headers.c>
-    <FilesMatch "\\.(ico|jpe?g|png|gif)$">
-        Header set Cache-Control "max-age=2592000, public"
-    </FilesMatch>
-    <FilesMatch "\\.(css)$">
-        Header set Cache-Control "max-age=600, public"
-    </FilesMatch>
-    <FilesMatch "\\.(js)$">
-        Header set Cache-Control "max-age=600, private, must-revalidate"
-    </FilesMatch>
-    <FilesMatch "\\.(x?html?)$">
-        Header set Cache-Control "max-age=600, private, must-revalidate"
-    </FilesMatch>
-</IfModule>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 42
build/prod/cyberchef.htm


BIN
build/prod/images/bug-16x16.png


BIN
build/prod/images/clean-16x16.png


BIN
build/prod/images/cook_male-32x32.png


BIN
build/prod/images/cyberchef-128x128.png


BIN
build/prod/images/download-24x24.png


BIN
build/prod/images/erase-16x16.png


BIN
build/prod/images/favourite-16x16.png


BIN
build/prod/images/favourite-24x24.png


BIN
build/prod/images/fork_me.png


BIN
build/prod/images/help-16x16.png


BIN
build/prod/images/help-22x22.png


BIN
build/prod/images/layout-16x16.png


BIN
build/prod/images/maximise-16x16.png


BIN
build/prod/images/open_yellow-16x16.png


BIN
build/prod/images/open_yellow-24x24.png


BIN
build/prod/images/recycle-16x16.png


BIN
build/prod/images/save-16x16.png


BIN
build/prod/images/save-22x22.png


BIN
build/prod/images/save_as-16x16.png


BIN
build/prod/images/settings-22x22.png


BIN
build/prod/images/speech-16x16.png


BIN
build/prod/images/stats-16x16.png


BIN
build/prod/images/step-16x16.png


BIN
build/prod/images/switch-16x16.png


BIN
build/prod/images/thumb_down-16x16.png


BIN
build/prod/images/thumb_up-16x16.png


BIN
build/prod/images/undo-16x16.png


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 20
build/prod/index.html


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
build/prod/scripts.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 21
build/prod/styles.css


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott