sbt / sbt-ghpages

git, site and ghpages support for sbt projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for gitlab pages?

nrinaudo opened this issue · comments

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 of gh-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.

I don't personally use Gitlab, but if it scratches your itch please go ahead and send us a PR.

PR #29 sent. Let me know if there's anything I can do to help process it!

sbt-glpages, enabled by merging this PR. Thanks!