Sachin Patil

Sachin

Free software developer & Emacser

Gitlab Pages and Org-mode

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>
from contextlib import contextmanager

@contextmanager
def tag(name):
    print("<%s>" % name)
    yield
    print("</%s>" % name)

with tag("h1"):
    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