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