Skip to content

Commit 7b5cb44

Browse files
committed
Added robots.txt for productive environments
1 parent 2b2b277 commit 7b5cb44

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/yarn.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ jobs:
4444
if: ${{ github.ref != 'refs/heads/main' }}
4545
uses: canastro/copy-file-action@master
4646
with:
47-
source: "template/robots.txt"
47+
source: "template/dev/robots.txt"
48+
target: "build/robots.txt"
49+
- name: Copy robots.txt to productive envs
50+
if: ${{ github.ref = 'refs/heads/main' }}
51+
uses: canastro/copy-file-action@master
52+
with:
53+
source: "template/prod/robots.txt"
4854
target: "build/robots.txt"
4955
- name: Upload artifact
5056
uses: actions/upload-artifact@v2
File renamed without changes.

template/prod/robots.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow: /cloudnet/
3+
Disallow: /repositories/
4+
Disallow: /data/

0 commit comments

Comments
 (0)