config.phundrak.com/.drone.yml
Lucien Cartier-Tilet a81b314a9e
[CI] Add CI script, add export script
Drone script calls new `export.el' script written in Emacs Lisp to
export all org files to HTML files.

HTML files should then be uploaded to a remote server with SCP
2020-09-03 12:41:07 +02:00

36 lines
611 B
YAML

kind: pipeline
name: default
steps:
- name: build
image: silex/emacs:27
commands:
- pwd
- ls -ahl
- which emacs
- emacs --script export.el
- name: deploy
image: appleboy/drone-scp
settings:
host:
from_secret: ssh_host
target:
from_secret: ssh_target
source:
- !org/config/LICENSE.md
- org/config/*.html
strip_components: 2
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
# when:
# branch:
# - master
# event:
# exclude:
# - pull_request