UP | HOME
Sachin Patil

Sachin

Free Software developer & Emacser

Gitlab Pages and Org-mode

Published on May 23, 2016 by Sachin.

THIS is a sample post and will be removed.

It’s easy to publish org-mode pages via GitLab CI and Pages.

<html>
<h1></h1>
</html>
 1: from contextlib import contextmanager
 2: 
 3: @contextmanager
 4: def tag(name):
 5:     print("<%s>" % name)
 6:     yield
 7:     print("</%s>" % name)
 8: 
 9: with tag("h1"):
10:     print("foo")
(message "asasa")

This project was published with the following .gitlab-ci.yml:

image: iquiw/alpine-emacs

.build: &build
  script:
  - emacs --batch --no-init-file --load publish.el --funcall org-publish-all
  artifacts:
    paths:
    - public

pages:
  <<: *build
  only:
  - master

test:
  <<: *build
  except:
  - master