Skip to content

Commit 73d455d

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/main.yml

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

66+
- name: Create .htaccess (if needed)
67+
run: touch public/.htaccess
6668

6769
- name: Build site
6870
run: npm run build

0 commit comments

Comments
 (0)