UP | HOME
Sachin Patil

Sachin Patil

Free Software Developer | GNU Emacs Hacker

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:

stages:
  - development
  - test
  - preprod
  - production

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

pages:
  stage: production
  environment:
    name: production
    url: https://psachin.gitlab.io/
  image: psachin/emacs-publish:30.0.50
  <<: *build
  artifacts:
    paths:
    - public
  only:
  - master
  when: manual

preprod:
  stage: preprod
  environment: proprod
  image: psachin/emacs-publish:30.0.50
  <<: *build

development:
  stage: development
  environment: development
  image: psachin/emacs-publish:emacs-29.0.50
  <<: *build
  except:
  - master

test:
  stage: test
  environment: test
  image: iquiw/alpine-emacs
  <<: *build