aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html
blob: 5fb1d7897fb4b28d23a4178706c8151bc624ad25 (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
<section>
  <p>
    This was quite simple, I had just to create a simple Gitlab pipeline job and
    publish to pages this is done by:
  </p>
  <pre><code>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</code></pre>
  <dl>
    <dt>before_script</dt>
    <dd>will download all the dependencies with <code>lein deps.</code></dd>
    <dt>test</dt>
    <dd>it is self explanatory</dd>
    <dt>pages</dt>
    <dd>
      it will compile cljs into js with <code>lein package</code> into
      <code>public</code> folder to later be published into gitlab pages. Take a
      look at the <code>artifacts</code> property, it is used to say wich will
      will be collected.
    </dd>
  </dl>

</section>