Configured Travis CI to deploy GitHub Releases
17
.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
|
- provider: pages
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
github_token: $GITHUB_TOKEN
|
github_token: $GITHUB_TOKEN
|
||||||
|
local_dir: build/prod/
|
||||||
|
target_branch: gh-pages
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
local_dir: "build/prod/"
|
- provider: releases
|
||||||
target_branch: gh-pages
|
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
|
||||||
|
|
|
@ -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>
|
|
Before Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 843 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 719 B |
Before Width: | Height: | Size: 585 B |
Before Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 769 B |
Before Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 553 B |