Skip to content

Commit 07ddf5f

Browse files
committed
workflow: add robots.txt to dev deploy
Add robot.txt when docs.golioth.dev is deployed so that search engines will not index the preview site. Signed-off-by: Mike Szczys <[email protected]>
1 parent 6a3d56e commit 07ddf5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/firebase-hosting-merge-develop.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 20.9.0
17-
- run: npm install && npm run build:dev
17+
- name: Build Docusaurus
18+
run: npm install && npm run build:dev
19+
- name: Add robots.txt for Dev site only
20+
run: echo -e ${{ format('User-agent{0} *\\nDisallow{1} /', ':', ':') }} > build/robots.txt
1821
- uses: FirebaseExtended/action-hosting-deploy@v0
1922
with:
2023
repoToken: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)