diff --git a/scripts/ci/jobs/web.yml b/scripts/ci/jobs/web.yml index 1081c033024b0be252c64b07f58490b75175a608..8746fd92b223963477e5a1161a93f2ac918e5e13 100644 --- a/scripts/ci/jobs/web.yml +++ b/scripts/ci/jobs/web.yml @@ -19,15 +19,20 @@ build web site: stage: build image: $WEB_IMAGE script: + # HACK to easier linking to the generated pages + - echo '<meta http-equiv="REFRESH" content="0;URL=web/public/index.html">' >> WebPreview.html - cd web - yarn - - hugo + - hugo --environment staging rules: - changes: - web/ artifacts: + expose_as: 'Web Preview' paths: + - WebPreview.html - web/public + expire_in: 1 week cache: paths: - web/node_modules diff --git a/web/config/staging/config.toml b/web/config/staging/config.toml index 8d2723fe7db30c17b6a1bea34f06227e89eb0a44..3132a50beb4f4bdc6f4d0610c929d5567ce7ebaf 100644 --- a/web/config/staging/config.toml +++ b/web/config/staging/config.toml @@ -1,2 +1,3 @@ baseURL = "" relativeurls = true +uglyURLs = true