diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index d8dee60ec..5c87b578f 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -31,6 +31,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Copy robots.txt + run: cp public/robots.txt.development public/robots.txt + - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master with: diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 088b40ed7..b73771dc2 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -35,6 +35,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Copy robots.txt + run: cp public/robots.txt.development public/robots.txt + - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master with: diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index f1ebce04e..feac7cd51 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -35,6 +35,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Copy robots.txt + run: cp public/robots.txt.production public/robots.txt + - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master with: diff --git a/.gitignore b/.gitignore index a4dcb40e8..9684431fb 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,9 @@ dump.rdb # Ignore compiled assets /public/assets +# Ignore robots.txt - generated before image creation +/public/robots.txt + # Ignore user uploads /public/uploads/* !/public/uploads/.keep diff --git a/public/robots.txt.development b/public/robots.txt.development new file mode 100644 index 000000000..1f53798bb --- /dev/null +++ b/public/robots.txt.development @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/public/robots.txt b/public/robots.txt.production similarity index 100% rename from public/robots.txt rename to public/robots.txt.production