gabrielgio.me @ 4f75d3996ca3f455150c790e26ebd334d67b24f7

 1---
 2title:  "Moving from Github to Gitlab pages"
 3date:   2020-08-22
 4tags: ['gitlab']
 5---
 6
 7This was quite simple, I had just to create a simple Gitlab pipeline job and
 8publish to pages this is done by:
 9
10#+BEGIN_SRC
11image: clojure:lein-2.7.0
12
13before_script:
14  - lein deps
15
16test:
17  script:
18    - lein test
19
20pages:
21  stage: deploy
22  script:
23    - lein package
24  artifacts:
25    paths:
26      - public
27  only:
28    - master
29
30#+END_SRC
31
32- before_script :: will download all the dependencies with ~lein deps~.
33- test :: is self explanatory.
34- pages :: will compile the cljs into js with ~lein package~ and publish it into
35  pages.