From 8da1e7b275e217e1d0e931838bb90f9b3b105b36 Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:21:45 +0000 Subject: [PATCH] chore: Try to ping search engines differently --- .gitlab-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05cb2a0..e399b7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,8 +15,16 @@ pages: artifacts: paths: - public + +# This sequences waits 10 seconds after deploy (for GitLab pages to do its thing, then pings search engines) +# I wish we could just depend on the pages:deploy job that GitLab inserts, but apparently we can't reference it. +wait: + needs: + - "pages" + script: + - sleep 10 ping: needs: - - "pages:deploy" + - "wait" script: - mix pre_dot_hn.ping