Add support for gitlab pages?
nrinaudo opened this issue · comments
Nicolas Rinaudo commented
Gitlab pages are slightly less straightforward than Github pages, but a working integration for Scala could be:
- have a special branch called
gl-pages
mirror the behaviour ofgh-pages
for Github - store permanently a
.gitlab-ci.yml
file in that branch
For example, for jekyll:
image: ruby:2.3
pages:
script:
- gem install jekyll
- jekyll build -d public
artifacts:
paths:
- public
only:
- master
In order for this workflow to be supported by sbt-ghpages
, we'd need very little:
- make the name of the git branch configurable (defaulting to
gh-pages
). - add a setting that lets us control which files are ignored when cleaning the content of the special git branch before publishing (defaulting to
None
).
I'd be happy to try and put a PR together if this is deemed interesting.
eugene yokota commented
I don't personally use Gitlab, but if it scratches your itch please go ahead and send us a PR.
Nicolas Rinaudo commented
PR #29 sent. Let me know if there's anything I can do to help process it!
Nicolas Rinaudo commented
sbt-glpages, enabled by merging this PR. Thanks!