diff options
Diffstat (limited to 'content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html')
-rw-r--r-- | content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html b/content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html new file mode 100644 index 0000000..5fb1d78 --- /dev/null +++ b/content/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html @@ -0,0 +1,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> |