aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2020-08-22-genpass.md
blob: 3991a869ae1185fb32f23e9d8d3571ece5bda66d (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
29
30
31
32
33
34
35
36
37
38
39
---
title: "Moving from Github to Gitlab pages"
date: 2020-08-22
tags: ['gitlab']
---

This was quite fast, I had just to create a small Gitlab pipeline job and
publish to pages this is done by:

```yml
image: clojure:lein-2.7.0

before_script:
  - lein deps

test:
  script:
    - lein test

pages:
  stage: deploy
  script:
    - lein package
  artifacts:
    paths:
      - public
  only:
    - master
```

before_script
:   will download all the dependencies with `lein deps`.

test
:   is self explanatory.

pages
:   will compile the cljs into js with `lein package` and publish it
    into pages.