Automate pushing to new site.

This commit is contained in:
ccd0 2015-08-11 01:19:06 -07:00
parent 97898b0fd5
commit 18f5554dfe
2 changed files with 10 additions and 0 deletions

View File

@ -215,6 +215,15 @@ module.exports = (grunt) ->
""".split('\n').join('&&')
push:
command: 'git push origin --tags -f && git push origin --all'
aws:
command: """
git checkout gh-pages
aws s3 cp builds s3://<%= pkg.meta.awsBucket %>/builds --recursive
aws s3 cp img s3://<%= pkg.meta.awsBucket %>/img --recursive
aws s3 cp index.html s3://<%= pkg.meta.awsBucket %>
aws s3 cp web.css s3://<%= pkg.meta.awsBucket %>
git checkout -
""".split('\n').join('&&')
npm:
command: 'npm install'
update:

View File

@ -14,6 +14,7 @@
"chromeStoreID": "ohnjgmpcibpbafdlkimncjhflgedgpam",
"recaptchaKey": "6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc",
"youtubeAPIKey": "AIzaSyB5_zaen_-46Uhz1xGR-lz1YoUMHqCD6CE",
"awsBucket": "4chan-x",
"buildsPath": "builds/",
"mainBranch": "master",
"matches": [