aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 11a45d039c0637f100283d4bd11ddec53d63e1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
image: java:8

before_script:
  - apt-get update -y
  - apt-get install apt-transport-https -y
  # Install SBT
  - echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
  - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
  - apt-get update -y
  - apt-get install sbt -y
  - sbt sbt-version

pages:
  stage: deploy
  script:
  - sbt clean fullOptJS
  - mkdir -p public
  - cp target/scala-2.12/classes/index-prod.html public/index.html
  - cp target/scala-2.12/classes/reset.css public/reset.css
  - cp -r target/scala-2.12/classes/cover public/cover
  - cp target/scala-2.12/classes/icon.png public/icon.png
  - cp target/scala-2.12/reading-opt.js public/main.js
  - sed 's/src="[^"]*"/src="main.js"/' -i public/index.html
  artifacts:
    paths:
    - public
  only:
  - master