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