macroblog.rs @ d33e4b11bf059e4a7815a771efcef9d079f0e550

 1<section>
 2  <p>
 3    This was quite simple, I had just to create a simple Gitlab pipeline job and
 4    publish to pages this is done by:
 5  </p>
 6  <pre><code>image: clojure:lein-2.7.0
 7
 8before_script:
 9  - lein deps
10
11test:
12  script:
13    - lein test
14
15pages:
16  stage: deploy
17  script:
18    - lein package
19  artifacts:
20    paths:
21      - public
22  only:
23    - master</code></pre>
24  <dl>
25    <dt>before_script</dt>
26    <dd>will download all the dependencies with <code>lein deps.</code></dd>
27    <dt>test</dt>
28    <dd>it is self explanatory</dd>
29    <dt>pages</dt>
30    <dd>
31      it will compile cljs into js with <code>lein package</code> into
32      <code>public</code> folder to later be published into gitlab pages. Take a
33      look at the <code>artifacts</code> property, it is used to say wich will
34      will be collected.
35    </dd>
36  </dl>
37
38</section>