Skip to content

Commit 7f6698b

Browse files
committed
Prevent Indexing of Github Pages used as Staging Sites
1 parent 7a6efdb commit 7f6698b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,16 @@ jobs:
6363
- name: Modify hugo.toml
6464
run: sed -i "s|baseURL = .*|baseURL = \"$BASE_URL\"|" hugo.toml
6565

66+
67+
- name: Build site
68+
run: npm run build
69+
6670
- name: Modify .htaccess (Prevent Indexing)
6771
run: |
6872
if [[ "$BASE_URL" != "https://open-neuromorphic.org/" ]]; then
6973
echo "Header set X-Robots-Tag \"noindex, nofollow\"" >> public/.htaccess
7074
fi
7175
72-
- name: Build site
73-
run: npm run build
74-
7576
- name: Upload artifact
7677
uses: actions/upload-pages-artifact@v3.0.1
7778
with:

0 commit comments

Comments
 (0)