From 6fb5250185d9e67409947d08f81c4f1f8a11e85a Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Wed, 9 Aug 2017 02:18:31 +0300 Subject: [PATCH] ci(aio): fix deploying the stable branch to Firebase The `deploy-to-firebase.sh` always expects there to be a `src/extra-files/` directory and breaks if it doesn't exist. --- aio/src/extra-files/README.md | 6 +++++- aio/src/extra-files/archive/robots.txt | 3 ++- aio/src/extra-files/next/robots.txt | 3 ++- aio/src/extra-files/stable/robots.txt | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 aio/src/extra-files/stable/robots.txt diff --git a/aio/src/extra-files/README.md b/aio/src/extra-files/README.md index 2aad208a30..55a09439bf 100644 --- a/aio/src/extra-files/README.md +++ b/aio/src/extra-files/README.md @@ -6,4 +6,8 @@ After the AIO application had been built and before it is deployed all files and inside the folder with the same name as the current deployment mode (next, stable, archive) will be copied to the `dist` folder. -See the `scripts/deploy-to-firebase.sh` script for more detail. \ No newline at end of file +See the `scripts/deploy-to-firebase.sh` script for more detail. + +**Note:** +The `deploy-to-firebase.sh` script always expects there to be a folder for the current deployment +mode (even if it is empty). diff --git a/aio/src/extra-files/archive/robots.txt b/aio/src/extra-files/archive/robots.txt index 77470cb39f..35272cac72 100644 --- a/aio/src/extra-files/archive/robots.txt +++ b/aio/src/extra-files/archive/robots.txt @@ -1,2 +1,3 @@ +# Disallow all URLs (see http://www.robotstxt.org/robotstxt.html) User-agent: * -Disallow: / \ No newline at end of file +Disallow: / diff --git a/aio/src/extra-files/next/robots.txt b/aio/src/extra-files/next/robots.txt index 77470cb39f..35272cac72 100644 --- a/aio/src/extra-files/next/robots.txt +++ b/aio/src/extra-files/next/robots.txt @@ -1,2 +1,3 @@ +# Disallow all URLs (see http://www.robotstxt.org/robotstxt.html) User-agent: * -Disallow: / \ No newline at end of file +Disallow: / diff --git a/aio/src/extra-files/stable/robots.txt b/aio/src/extra-files/stable/robots.txt new file mode 100644 index 0000000000..7dbb786bc6 --- /dev/null +++ b/aio/src/extra-files/stable/robots.txt @@ -0,0 +1,3 @@ +# Allow all URLs (see http://www.robotstxt.org/robotstxt.html) +User-agent: * +Disallow: