From ef8dbddc8f77c18d7d29fd26addb28439d7d4d09 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 16 Jun 2017 00:44:14 -0500 Subject: [PATCH] ci(gh-pages): prevented removal of files that arent in the src branch this wont be a good long term solution because of filenames changing each time the contents change, but the --remove flag isnt working as expected. this should at least prevent the removal of CNAME with every deploy until i hear back on https://github.com/tschaub/gh-pages/issues/179 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 770b37c..cd3078b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "webpack --env production", "build:dev": "webpack --env development", "start": "babel-node webpack-dev-server.js", - "deploy": "gh-pages -r \"https://$GH_TOKEN@github.com/travi/presentations.git\" --remove \"!CNAME\" -d lib/", + "deploy": "gh-pages -r \"https://$GH_TOKEN@github.com/travi/presentations.git\" -a -d lib/", "commitmsg": "validate-commit-msg", "precommit": "npm test" },