Skip to content

Commit

Permalink
Update doc-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
svekars authored Apr 16, 2024
1 parent 662cc2f commit ccb2a48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
cd ..
# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
echo "Ref name: ${REF_NAME}"
GITHUB_REF=${{ github.ref }}
echo "GitHub Ref: ${GITHUB_REF}"
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
find docs/_build/html/ -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
fi
Expand Down

0 comments on commit ccb2a48

Please sign in to comment.