Delete from current directory before deploying

Does what https://github.com/alphagov/notifications-admin/pull/45 intended to do
This commit is contained in:
Chris Hill-Scott
2016-01-07 15:52:49 +00:00
parent afd03ea5bf
commit 80f214e0fa

View File

@@ -43,7 +43,7 @@ deploy:
region: eu-west-1
on: *2
before_deploy:
- rm -rf notifications-admin/node_modules notifications-admin/bower_components notifications-admin/app/assets
- rm -rf node_modules bower_components app/assets
- zip -r notifications-admin *
- mkdir -p dpl_cd_upload
- mv notifications-admin.zip dpl_cd_upload/notifications-admin.zip