We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f678559 commit bd7b004Copy full SHA for bd7b004
.github/workflows/main.yml
@@ -75,10 +75,17 @@ jobs:
75
- name: Modify .htaccess (Prevent Indexing)
76
run: |
77
if [[ "$BASE_URL" != "https://open-neuromorphic.org/" ]]; then
78
- sudo chmod 666 public/.htaccess # Make file fully writeable.
+ sudo chmod 666 public/.htaccess
79
echo "Header set X-Robots-Tag \"noindex, nofollow\"" >> public/.htaccess
80
fi
81
82
+ - name: Create robots.txt (Prevent Indexing)
83
+ run: |
84
+ if [[ "$BASE_URL" != "https://open-neuromorphic.org/" ]]; then
85
+ echo "User-agent: *" > public/robots.txt
86
+ echo "Disallow: /" >> public/robots.txt
87
+ fi
88
+
89
- name: Upload artifact
90
uses: actions/upload-pages-artifact@v3.0.1
91
with:
0 commit comments