From 1ddf38bd459366e79722514eda88c2727450eb96 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 31 Jul 2024 11:39:37 -0600 Subject: [PATCH] Set robots meta tag content "noindex, nofollow" for gh-pages preview --- .github/workflows/export-static-site.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/export-static-site.yml b/.github/workflows/export-static-site.yml index 6461f36..223b7b2 100644 --- a/.github/workflows/export-static-site.yml +++ b/.github/workflows/export-static-site.yml @@ -44,7 +44,7 @@ jobs: - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Run "docker compose up" to export static site for RiskProfiler run: | @@ -53,11 +53,6 @@ jobs: export OPTIONS_GIT_DESCRIBE=$(git describe --long --tags) docker compose up --abort-on-container-exit --exit-code-from wpcli - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 - with: - path: html_static/riskprofiler - - name: Upload debug log artifact uses: actions/upload-artifact@v4 with: @@ -82,6 +77,17 @@ jobs: tags: true draft: false + - name: Discourage search engines from indexing this preview site + run: | + for i in $(grep -lr '^