aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.md
blob: f971a7507150c43e577b7cdf1fa87945e069f59f (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
--- title: \"Moving from Github to Gitlab pages\" date: 2020-08-22 tags:
\[\'gitlab\'\] ---

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

    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.