From 5e83d876e24eb9e387798df373b1137d3ad0cbfc Mon Sep 17 00:00:00 2001 From: Barak Amar Date: Thu, 30 Nov 2023 17:10:40 +0200 Subject: [PATCH] docs: fix robots.txt update workflows (#7093) --- .github/workflows/docs-pr.yaml | 5 ----- .github/workflows/docs-release.yaml | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs-pr.yaml b/.github/workflows/docs-pr.yaml index ac275533a91..85ab8fb6578 100644 --- a/.github/workflows/docs-pr.yaml +++ b/.github/workflows/docs-pr.yaml @@ -30,11 +30,6 @@ jobs: working-directory: docs run: bundle exec jekyll build --config _config.yml -d _site/ --verbose - - name: Update robots.txt - working-directory: docs/_site - run: | - sed -i 's/^Sitemap: /Sitemap: https:\/\/docs.lakefs.io/' robots.txt - - name: Overlay PR message on each page working-directory: docs/_site run: | diff --git a/.github/workflows/docs-release.yaml b/.github/workflows/docs-release.yaml index 951ff3a02b1..5e9c3522697 100644 --- a/.github/workflows/docs-release.yaml +++ b/.github/workflows/docs-release.yaml @@ -37,10 +37,10 @@ jobs: working-directory: docs run: bundle exec jekyll build --config _config.yml -d _site/${{ steps.version.outputs.tag }} -b /${{ steps.version.outputs.tag }} - - name: Update robots.txt - working-directory: docs/_site + - name: Remove robots.txt + working-directory: docs/_site/${{ steps.version.outputs.tag }} run: | - sed -i 's/^Sitemap: /Sitemap: https:\/\/docs.lakefs.io/' robots.txt + if [[ -f robots.txt ]]; then rm robots.txt; fi - name: Update published version env: