From 3dee6d0e67afe620c491e750f50d3635e0eaf034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norbert=20Kami=C5=84ski?= Date: Fri, 4 Aug 2023 01:28:28 +0200 Subject: [PATCH] seo.yml: Wait server to avoid race condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Norbert KamiƄski --- .github/workflows/seo.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/seo.yml b/.github/workflows/seo.yml index 550a0cb..a5bbd9b 100644 --- a/.github/workflows/seo.yml +++ b/.github/workflows/seo.yml @@ -51,13 +51,9 @@ jobs: - name: Serve site run: | - hugo serve -b http://localhost:1313 --bind=0.0.0.0 & - sleep 10 - - - name: Check orphan pages - uses: 3mdeb/seo-spy-action@main - with: - domain: 'http://localhost:1313' + npm install postcss-cli + hugo + hugo serve --contentDir public -b http://localhost:1313 --bind=0.0.0.0 & seo_spy_canonical_links: runs-on: ubuntu-latest @@ -90,8 +86,9 @@ jobs: - name: Serve site run: | - hugo serve -b http://localhost:1313 --bind=0.0.0.0 & - sleep 10 + npm install postcss-cli + hugo + hugo serve --contentDir public -b http://localhost:1313 --bind=0.0.0.0 & - name: Check canonical links uses: 3mdeb/seo-spy-action@main