From 18f5554dfee0928ef685f4be558f6eaf69ac71a8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 11 Aug 2015 01:19:06 -0700 Subject: [PATCH] Automate pushing to new site. --- Gruntfile.coffee | 9 +++++++++ package.json | 1 + 2 files changed, 10 insertions(+) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 24f2d3770..73a744ae9 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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: diff --git a/package.json b/package.json index 1c8a6b6c9..a2bee3a46 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "chromeStoreID": "ohnjgmpcibpbafdlkimncjhflgedgpam", "recaptchaKey": "6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc", "youtubeAPIKey": "AIzaSyB5_zaen_-46Uhz1xGR-lz1YoUMHqCD6CE", + "awsBucket": "4chan-x", "buildsPath": "builds/", "mainBranch": "master", "matches": [