diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2021-02-09 12:11:01 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2021-02-09 12:11:01 +0300 |
commit | 3c114729b0e645d17e4753718213ec1650aa4d8b (patch) | |
tree | 191655fc6bdf0bd59dc71a778260f25e974c2d71 /.gitlab-ci.yml | |
parent | 93218b2a362bbb8dc54fab3fba93b44990e6519b (diff) |
Implement YAML redirects mechanism
Keep track of the Pages redirects in a YAML file
and use a Raketask to populate _redirects.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cfcfbc1c..234f2c70 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -148,6 +148,8 @@ variables: - bundle exec nanoc compile -VV # Symlink all README.html to index.html so that we can have clean URLs - bundle exec rake symlink_readmes + # Create _redirects for Pages redirects + - bundle exec rake redirects # Remove CE dir and symlink EE to CE - if [ $CI_PIPELINE_SOURCE != 'pipeline' ]; then cd public && rm -rf ce && ln -s ee ce && cd ../; fi # Calculate sizes before and after minifying/gzipping the static files (HTML, CSS, JS) |